Sunday, March 6, 2011

Automatically increment revision with each build in Microsoft Visual Studio 2005+

This works in MVS 2005, 2008, 2010, so far what i've tested.

In your project, go into the AssemblyInfo.cs of the project you want to edit, located under:
PROJECT NAME -> Properties -> Assemblyinfo.cs

and change the line:
[assembly: AssemblyVersion("")] 
[assembly: AssemblyVersion("1.0.*")]

This will give you a more accurate version number, based on the amount of changes and the amount of builds.

In my earlier post, you can see some made up number i used for my project build in the top left. This is the result after changing the assembly info:

1 comment:

  1. This article gives the light in which we can observe the reality. this is very nice one and gives in depth information. thanks for this nice article.