Automatic assembly version number management in VS2008

assembliesvisual-studio-2008

I have a VS2008 project written in c# with a number of assemblies. I'd like to have a simple way of managing the version numbers between all of the different assemblies and a way to automatically increment the build number and have that saved into the version number of each assembly.

I'm guessing that this is a problem with most projects so presumably it has been solved before?

Any suggestions for how I can simplify management of my project's version resources?

Best Answer

I use a .cs file on solution level that is linked by all projects in the solution which contains the following lines:

using System.Reflection;
[assembly : AssemblyVersion("1.2.3.*")]

And be sure to remove the AssemblyFileVersion attribute from the AssemblyInfo file in your project.