Auto increment the build number in the 'AssemblyVersion'

Q) How to auto-increment the build number of the ‘AssemblyVersion’ in a managed application?

A) Locate the AssemblyInfo.cs (or VB) file and make the following change - [assembly: AssemblyVersion("1.0.*")] – Voila!!! The assemblyversion should now automatically change after each build. However, be warned – changing the buildnumber in a class library would result in the recompilation of all dependent assemblies.