Fix NU1107 message guidance for CPVM with transitive pinning#7235
Open
Fix NU1107 message guidance for CPVM with transitive pinning#7235
Conversation
When a version conflict involves a centrally managed transitive package,
provide guidance to update the centrally managed package version instead
of suggesting to install/reference the package directly.
New message: "Version conflict detected for {0} transitively pinned
centrally managed package in project {1}. Update the centrally managed
package version to a higher version."
Co-authored-by: nkolev92 <2878341+nkolev92@users.noreply.github.com>
Agent-Logs-Url: https://github.com/NuGet/NuGet.Client/sessions/42973248-ebc6-4845-bdaa-c3f070e5ac66
Copilot
AI
changed the title
[WIP] Fix NU1107 message guidance for CPVM with transitive pinning
Fix NU1107 message guidance for CPVM with transitive pinning
Mar 25, 2026
Member
|
@copilot Update the PR description with the PR template. You may need to push a dummy change to get your routines to actually update the body. |
Agent-Logs-Url: https://github.com/NuGet/NuGet.Client/sessions/df082b6e-9a66-4079-9c51-24f4b07d696c Co-authored-by: nkolev92 <2878341+nkolev92@users.noreply.github.com>
Contributor
Author
Updated the PR description to follow the PR template in commit d3c65c0. It now includes the |
…m/NuGet/NuGet.Client into copilot/fix-nu1107-guidance-error
Member
|
This is more complex than I thought. |
Member
|
I tweaked the implementation. This was a requirements challenge. |
donnie-msft
reviewed
Mar 27, 2026
donnie-msft
approved these changes
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Fixes: NuGet/Home#12277
Description
When CPVM (Central Package Version Management) with transitive pinning is enabled, the NU1107 error message previously told users to "Install/reference X directly to project Y" — guidance that doesn't apply with transitive pinning.
They can just "pin" that package.
PR Checklist