Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Details about Problem
NuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe): VS UI
NuGet version (4.9.0):
Worked before? If so, with which NuGet version: No
Detailed repro steps so we can see the same problem
The package version is not generated with the AssemblyInformationVersionAttribute property.
If you look at the targets here, there's no mention of it
You need to use PackageVersion.
Please refer to https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets for more details.
quick solution here. just right click on your project file and edit it. there 2 versions
Looks like PackageVersion is used to generate nuget version but VS settings are updating Version tag. I have no idea what is it for. It still an issue with VS and please move it to VS issues.
I've raised an Issue over on project system:
Wehn I tested this in detail. I found that the Pack-on-build functionality, does use the
So if you create a blank project, and never manually edit the
Not sure how my projects came to have a <PV> ... possibly and earlier version of the Packer didn't use <V>? So I had to add <PV> by hand? Which then "breaks" the UI.
So I suppose that they could argue that the UI is doing what it's supposed to, and that the Packer is bugged (in that <PV> shouldn't exist and it's a bug that the Packer is paying any attention to it.)?