Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase Assembly Version Number 1 by 1

I setted AssemblyVersion attribute to this: [assembly: AssemblyVersion("1.0.0.*")]

It is increasing according to change of assembly and time. Now it is: {1.0.0.20042} and if I don't change cs files inside assembly it doesn't increase. But if I change the one of class file in this assembly, version isn't increasing just one. If I didn't misunderstand the articles it is increasing depend on time. But I want to set this increament depend on build number.

Is there any way to learn build number from this version number or to set it's increament 1 ?

like image 483
uzay95 Avatar asked Feb 09 '12 09:02

uzay95


1 Answers

I use Auto Version Increment for Visual Studio. It's free and works for VS2005/08 and has a separate version for VS2010.

You can select all sorts of policies on build incrementing, including per-build increment and time based build numbers.

If you've got multiple projects and want to keep the version numbers the same, you can create a shared AssemblyInfo.cs between all projects, then increment the build version in that.

like image 188
Polynomial Avatar answered Oct 18 '22 10:10

Polynomial