Question

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 ?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top