Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kingofnull/2ccbf00d39007bf781686068ec8e5dc2 to your computer and use it in GitHub Desktop.
Save kingofnull/2ccbf00d39007bf781686068ec8e5dc2 to your computer and use it in GitHub Desktop.
How to auto version in visual studio for c# project (Tested in VS2019)
  1. Set Deterministic to false in .csproj file:

    <Deterministic>false</Deterministic>
  2. Change versioning in AssemblyInfo.cs to this:

    [assembly: AssemblyVersion("1.0.*")]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment