views:

36

answers:

1

I set version numbers in my assemblies to:

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

After first rebuild I got this version number:

1.0.3835.35633   
<major version>.<minor version>.<build number>.<revision>

In MSDN article about assembly version attribute there is really short description:

The default build number increments daily.

Is there any way for me to reset default build number to e.g. 1 and have Visual Studio automatically increments.

Edit:
I found information that build number is number of days since 2000-01-01. I checked it on two different computers and it really is. In above build number, 3835 is number of days between 2000-01-01 and 2010-07-02.
So, it looks that default build number cannot be changed and it's identical for all VS2008 installations.
I don't like this numbering schema, so I'll try two add-in's - one that Alek suggested in his answer and another one I found: Build Version Increment Add-In Visual Studio

+1  A: 

I don't think you can make it work like this natively in Visual Studio, but you can try the Versioning Controlled Build add-in and see if it does what you need.

Alek Davis