Repository navigation
Get reference nearest disambiguates with an alias too - #7218
Merged
Merged
Conversation
nkolev92
force-pushed
the
dev-nkolev92-getreferencenearestusesalias
branch
2 times, most recently
from
March 19, 2026 22:22
386cf1d to
3a03400
Compare
nkolev92
force-pushed
the
dev-nkolev92-getreferencenearestusesalias
branch
from
March 19, 2026 22:27
73bdf3f to
8f052f5
Compare
zivkan
approved these changes
Mar 20, 2026
kartheekp-ms
approved these changes
Mar 20, 2026
jebriede
approved these changes
Mar 20, 2026
2 of 3 tasks
This was referenced Mar 21, 2026
3 tasks done
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#14807
Description
ProjectNETCurrent (apple; banana) both target net10.0
has a project reference to
ProjectNETPrevious (apple; banana), both target net8.0.
ProjectReference works!
ProjectNET (apple;) target net10.0
has a project reference to
ProjectNETFramework (apple;), target n472.
ProjectReference works with a NU1702 warning.
Now take the following:
ProjectNET (apple; banana) both target net10.0
has a project reference to
ProjectNETFramework (apple; banana), both target n472.
This PR ensures this scenario works as well and it disambiguates with the alias.
While working on this I did hit NuGet/Home#12010 as well I have created NuGet/Home#14815 as a follow-up to the bug I discovered. I have also added a test that's skipped that basically validates the scenario.
PR Checklist
Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.