Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto-increment Visual Studio Setup Project version number

I use Visual Studio Setup projects to create MSI's for my .Net Applications. It would be nice if I could have my version numbers auto-increment. Even better would be an option to set the installer version equal to AssemblyVersion of the primary output exe.

like image 704
Nate Avatar asked Feb 19 '11 17:02

Nate


People also ask

Can I automatically increment the file build version when using Visual Studio?

By default, Visual Studio automatically increments the Revision number of the Publish Version each time you publish the application. You can disable this behavior on the Publish page of the Project Designer.

How do I change the DLL version number in Visual Studio?

Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio. Select the Configuration Properties > Linker > General property page. Modify the Version property.


1 Answers

If it's not overkill for you, use a BuildServer (like TeamCity (free for up to 20projects). With a little msbuild-coding, you can nicely automate the building of your installers (including automatic revision number incr.)

like image 192
Sascha Avatar answered Sep 28 '22 20:09

Sascha