Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Increment Version on Build
Increment Version on Build

Increment Version on Build

NTI DE

|
4,489 installs
| (8) | Free
Increment Version on every build according to configureable rules.
Download

Increment Version on Build

Increment Version on every build according to configureable rules.

Increment can be enabled by clicking Enable Increment Version on Build on a project's context menu:
Project context menu

This will add

<IncrementVersionOnBuild>1.yyyy.Mdd.Hmm</IncrementVersionOnBuild>

to the project's properties.

The default template can be configured in Visual Studio's options:
Options

Available rules

  • Hardcoded integer: use this value for version part
  • +: Increment version part by 1
    • You can prefix the + by an integer, then version is reset to this integer, as soon as a higher version part changes, e.g. 0+.
  • *: Default version number (only applicable to build and revision, see https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assemblyversionattribute?view=netframework-4.8#remarks)
  • >: In order to output TimeSpans, specify an invariant DateTime (MM/dd/yyyy hh:mm:ss), followed by > and the format. Here also TimeSpan's properties are supported. Examples:
    • 01/01/2000>%d will output days since January 1st 2000 (same like * in default version build).
    • 00:00>TotalSeconds will output seconds since midnight.
  • strings will be used to format current DateTime, see https://docs.microsoft.com/en-us/dotnet/api/system.datetime.tostring
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft