- Create file VersionInfo.cs in solution root folder near .sln file.
- Put version info into the file:
using System.Reflection; [assembly: AssemblyCompany("wonderu.com")] [assembly: AssemblyCopyright("Copyright © wonderu.com 2011")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: AssemblyVersion("188.8.131.52")] [assembly: AssemblyFileVersion("184.108.40.206")]
- Delete corresponding assembly attributes from all AssemblyInfo.cs files
- Link to VersionInfo.cs file in all projects: Project -> Add Existing Item... -> Add as a Link (down arrow near the "Add" button).
Oct 21, 2011
.NET: One version file for all projects in solution
Glean a colleague the method of keeping the version info of all projects in solution: