Is there a way to revision all projects in a solution?
.net, c#, visual-studio-2010
Solution
In the past, I've followed the advice in this article to create a SharedAssemblyInfo.cs file at the solution level and linked to it from each of my projects.
The main point is that you want to add the SharedAssemblyInfo.cs file to your projects as a link. In Visual Studio, you would choose "Add Existing Item", but in the dialog, click the arrow on the Add button and select "Add As Link".
In SharedAssemblyInfo.cs, put any assembly attributes that you want to be the same across all projects. The article recommends the following:
- `AssemblyCompany`
- `AssemblyProduct`
- `AssemblyCopyright`
- `AssemblyTrademark`
- `AssemblyConfiguration`
- `AssemblyDescription`
- `CLSCompliant`
- `ComVisible`
- `AssemblyVersion`
- `AssemblyInformationalVersion`
Each project will still have its own AssemblyInfo.cs file as well to supplement the attribute it receives from the shared file:
- `AssemblyTitle`
- `AssemblyCulture`
- `Guid`
Problem
I have a solution with over 30 projects in it... Is there a quick and easy way of managing the build revision of all projects rather than editing the AssemblyInfo or Properties of each one?