As your solution grows, the number of assemblies you have will undoubtedly grow too. Updating the version numbers of all those assemblies by their projects AssemblyInfo.cs files can be a hassle. However, there is a way to change the version in just one file, but have that change affect all project assemblies!
By using a “link” file in your projects, you can include a file from a shared location that contains only the version information.
Now, for each project that you wish to include this version information:
When then assembly is built it will essentially have the combined attribute values from the AssemblyInfo.cs and VersionInfo.cs file.
Now you only have to change the version in one place and all projects will get it
Remember Me
Page rendered at 9/6/2010 4:31:49 PM (New Zealand Standard Time, UTC+12:00)
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.