How to put shared .NET solution assembly information into one single file
When working with .NET solutions that contains several projects, I have found it to be a real hassle to manage version numbers and other shared information for the various assemblies. Each time I want to change the version, I have had to open up the AssemblyInfo.cs file of each project and edit the changed information.
Well, from now on, it’s going to be a walk in the park, since I finally sat down for ten minutes and figured out how to share assembly information between projects. Ten minutes, that’s all it took to find the piece of info I needed and apply it to my .NET Extensions library.
So, how to do it? The answer is here, thanks Jeremy!
In short, the secret is to create a shared assembly information file (e.g. SharedAssemblyInfo.cs in the solution root folder or another solution folder) and link it into each project. To keep things concise, move it into the Properties folder of each project after linking it into the project. Once the shared information file is in place, make sure to delete any duplicate information from your original AssemblyInfo.cs file.
That is all there is to it. Quite simple, right?