Currently browsing category

tips

Auto Version Number in C#

Here’s a useful little tip: In your AssemblyInfo.cs file, modify your assembly version number to auto increment. First, replace the last zero with an asterisk. [assembly: AssemblyVersion(“1.0.0.*”)] Then later, you can reference the version number with: System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); You can then reference your version number as part of your other debug …