Maintain the same version no. across multiple .net assemblies
29 May 2015 - Lorentz Vedeler
If you want several projects to always have the same version number, this is a pretty neat trick:
- Remove AssemblyVerison and AssemblyFileVersion from existing AssemblyInfo.cs files
-
Add a CommonAssemblyInfo.cs file to one of the projects containing just:
using System.Reflection; [assembly: AssemblyVersion("2.3.1.0")] [assembly: AssemblyFileVersion("2.3.1.0")]
- In the other projects add existing item choose the CommonAssemblyInfo.cs, but remember to add it as a link (click on the arrow on the add button)