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 the handling of custom names (AssemblyName, PackageId) in packages lock file, construction and validation. #2807

Merged
merged 10 commits into from
Apr 19, 2019

Conversation

nkolev92
Copy link
Member

@nkolev92 nkolev92 commented Apr 18, 2019

Bug

Fixes: NuGet/Home#7889
Regression: No, Never worked

  • Last working version:
  • How are we preventing it in future:

Fix

Details:
The comparison now uses the short project name which is what's used when writing the lock file.

Testing/Validation

Tests Added: Yes
Reason for not adding tests:
Validation:

@nkolev92 nkolev92 marked this pull request as ready for review April 18, 2019 21:39
@nkolev92 nkolev92 changed the title Fix the handling of custom names (AssemblyName, PackageId) in packages lock file, construction and validation. [DO NOT REVIEW] Fix the handling of custom names (AssemblyName, PackageId) in packages lock file, construction and validation. Apr 18, 2019
@nkolev92 nkolev92 requested review from anangaur, zivkan, dtivel, dominoFire, donnie-msft and heng-liu and removed request for anangaur April 19, 2019 01:26
@nkolev92 nkolev92 changed the title [DO NOT REVIEW] Fix the handling of custom names (AssemblyName, PackageId) in packages lock file, construction and validation. Fix the handling of custom names (AssemblyName, PackageId) in packages lock file, construction and validation. Apr 19, 2019
projectA.Properties.Add("RestorePackagesWithLockFile", "true");
projectB.Properties.Add("PackageId", "CustomName");

//projectA.Properties.Add("RestoreLockedMode", "true");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove.

@nkolev92 nkolev92 force-pushed the dev-nkolev92-NU1004lockFile branch from 8425fbd to c91099f Compare April 19, 2019 23:15
@nkolev92 nkolev92 merged commit 6b8f2cf into dev Apr 19, 2019
@nkolev92 nkolev92 deleted the dev-nkolev92-NU1004lockFile branch April 19, 2019 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants