Reputation: 65
When running "nuget pack" alone, it seems to read the csproj file and use "Version" which I would like to auto increment the build version number.
When running "nuget pack nuspec.nuspec" it reads the nuspec file but produces this error: "an error occurred while trying to parse the value '' of property 'version' in the manifest file"
Question: how do I auto increment the version value for the nuget package? I have managed to auto increment the assembly info version but I am unable to get nuget to read from the file. I just need a basic nuget package build version increment. And things like Major versions can be changed manually.
I am using .net framework and nuget.exe. version 5.8.1.7021
Upvotes: 0
Views: 1230
Reputation: 23848
Actually, this is an issue on the latest recommended nuget.exe v5.8.1
. I have tested it several times and all failed. Also, nuget.exe v5.7.0
has the same issue.
Solution
So I suggest you could try to use nuget.exe v5.6.0. It works well without any issues.
Besides, I have reported the issue on our DC Forum. You can vote it and add any comments if I did not describe it in detail. Please track this ticket.
Upvotes: 2