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 false NU1004 in LockedMode where P2P projects with ATF fail due to a bad target framework equality check #2874

Merged
merged 10 commits into from
Jun 6, 2019

Conversation

nkolev92
Copy link
Member

@nkolev92 nkolev92 commented Jun 5, 2019

Bug

Fixes: NuGet/Home#8187
Regression: Yes

  • Last working version: 5.1
  • How are we preventing it in future: Adding a test to cover the scenario.

Fix

Details:
Our project reference and package reference info is stored in different models.
TargetFrameworkInformation and ProjectRestoreMetadataFrameworkInfo.
Both of those are target framework based, however one contains the AssetTargetFallback and the other one doesn't.
Now this could be on purpose because ATF based checks for project references were done differently.
Regardless that needs investigated and I will do it NuGet/Home#8193.

Now the fix here is to always use the base framework. Even if there is a fallback the base framework will always be the same/exact one.

//cc @bergbria @rrelyea

Testing/Validation

Tests Added: Yes
Reason for not adding tests:
Validation: Manual + automation

@nkolev92
Copy link
Member Author

nkolev92 commented Jun 5, 2019

@zivkan Reverted the unneeded change. Thanks for the pointer!

@nkolev92 nkolev92 merged commit f8ad810 into dev Jun 6, 2019
@nkolev92 nkolev92 deleted the dev-nkolev92-lockFileATF branch June 6, 2019 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants