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