-
Notifications
You must be signed in to change notification settings - Fork 258
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
P2P libraries in project.assets.json file have incorrect Version #3748
Comments
How is this version used? |
We use the project assets file information to generate the .deps.json file - specifically we use:
So if this Version is wrong, then the library's version in the .deps.json is going to be wrong. Looking through https://github.com/dotnet/core-setup/tree/master/src/corehost code, I don't think the host needs the version number to be correct for "project" libraries, since these aren't resolved from the NuGet cache. @schellap @gkhanna79 - can you confirm? The other place that reads the .deps.json file is ASPNET code. @pranavkm @pranavkm @anurse - Do you see the "project" library's version number being incorrect in the .deps.json file as a blocker for RC? |
cc @pakrym in case he knows more. We don't use the Version component of DependencyContext in Mvc (just the name). So this shouldn't affect AspNetCore. |
I don't think |
The host is agnostic to the type of the asset (package, project etc.) It uses a probing order given package name and version which forms the identity (meaning what) -- this can be found in the NuGet cache (meaning where) if it appears there first. |
Moving to RC2, yell if that is too late. |
This change reads the version or packageVersion property from an msbuild project and adds it to the package spec. This allows the assets file to display the correct version under the library entry. Fixes NuGet/Home#3748
Details about Problem
NuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe): dotnet restore3
NuGet version (x.x.x.xxx):
dotnet.exe --version (if appropirate):
1.0.0-preview3-003855
VS version (if appropriate):
OS version (i.e. win10 v1607 (14393.321)):
Worked before? If so, with which NuGet version: dotnet restore with a project.json
Detailed repro steps so we can see the same problem
2.3.4
.P2PTest.zip
Expected Result
I expect
Library
should have a version of2.3.4
.The text was updated successfully, but these errors were encountered: