Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix problem in new resolver with pinned package and version override #5968

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

jeffkl
Copy link
Contributor

@jeffkl jeffkl commented Aug 14, 2024

Bug

Fixes:

Description

If a project has a direct package reference with VersionOverride, that should take precedence over everything else. If that project references another project with VersionOverride on a different package, that VersionOverride should take precedence.

However, if transitive pinning is enabled, the pinned version should override the VersionOverride of a transitive PackageReference. This change corrects the behavior in the new dependency resolution algorithm.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@jeffkl jeffkl added the Priority:1 PRs that are high priority and should be reviewed quickly label Aug 14, 2024
@jeffkl jeffkl self-assigned this Aug 14, 2024
@jeffkl jeffkl requested a review from a team as a code owner August 14, 2024 17:28
@jeffkl jeffkl merged commit 7ca037b into dev Aug 14, 2024
25 of 28 checks passed
@jeffkl jeffkl deleted the dev-jeffkl-fix-transitive-pinning-version-override branch August 14, 2024 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:1 PRs that are high priority and should be reviewed quickly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant