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:
  1. Create file VersionInfo.cs in solution root folder near .sln file.
  2. 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("")]
    [assembly: AssemblyFileVersion("")]
  3.  Delete corresponding assembly attributes from all AssemblyInfo.cs files
  4. Link to VersionInfo.cs file in all projects: Project -> Add Existing Item... -> Add as a Link (down arrow near the "Add" button).


  1. The File hosterz speed is unlimited, or limited only by the own connection. As in the free version, the remote upload function can also be used. If you make a purchase of 6 months or more, you also get uDrive, the uploaded personal cloud. The price of a one-month term is € 9.99 a month. For longer terms (3, 6, 12, 24 months), the monthly costs sometimes fall sharply.

  2. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from .Net Core Training in Chennai. or learn thru .Net Core Training in Chennai. Nowadays Dot Net has tons of job opportunities on various vertical industry.
    or Es6 Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.