- 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("22.214.171.124")] [assembly: AssemblyFileVersion("126.96.36.199")]
- 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: