Update Package version Automatically

Topics: Ecosystem, General
Dec 21, 2012 at 4:23 PM


Is there any way where we can update the version number automatically from Visual Studio.

Actually, I am using Post Build event to create the package, but the version number is always same what is given in the Spec file.


Thanks in Advance.

Dec 26, 2012 at 7:22 PM

In you Spec file, try setting the version like this:

Then NuGet.exe will get the version from your main assembly version.