views:

1326

answers:

5

How can I AutoIncrement the assembly (build) number in Visual Studio?

Duplicate:

/questions/650/automatically-update-version-number

+2  A: 

You can just use a wildcard in the AssemblyVersionAttribute:

[assembly: AssemblyVersion("1.0.*")]

This will cause build to be equal to the number of days since January 1, 2000 local time.

Mark Cidade
+1  A: 

Maybe this is what you want from Code Project. Otherwise, you can do it from the property of the project by using the *.

Daok
+1  A: 

I use http://code.mattgriffith.net/UpdateVersion/ in a batch file as a pre-build step with calls to interact with our revision control system.

kenny
A: 

Setting it as such should do so:

[assembly: AssemblyVersion("1.0.*.*")]
hangy
+1  A: 

Duplicate of Question 650.

Michael Stum