Update Package version Automatically

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

Hello,

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 6:22 PM

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

<version>$version$</version>
Then NuGet.exe will get the version from your main assembly version.