You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`Major`| The major version. Should be incremented on breaking changes. |
47
-
|`Minor`| The minor version. Should be incremented on new features. |
48
-
|`Patch`| The patch version. Should be incremented on bug fixes. |
49
-
|`PreReleaseTag`| The pre-release tag is the pre-release label suffixed by the `PreReleaseNumber`. |
50
-
|`PreReleaseTagWithDash`| The pre-release tag prefixed with a dash. |
51
-
|`PreReleaseLabel`| The pre-release label. |
52
-
|`PreReleaseLabelWithDash`| The pre-release label prefixed with a dash. |
53
-
|`PreReleaseNumber`| The pre-release number. |
54
-
|`WeightedPreReleaseNumber`| A summation of branch specific `pre-release-weight` and the `PreReleaseNumber`. Can be used to obtain a monotonically increasing version number across the branches. |
55
-
|`BuildMetaData`| The build metadata, usually representing number of commits since the `VersionSourceSha`. Despite its name, will not increment for every build. |
56
-
|`FullBuildMetaData`| The `BuildMetaData` suffixed with `BranchName` and `Sha`. |
57
-
|`MajorMinorPatch`|`Major`, `Minor` and `Patch` joined together, separated by `.`. |
58
-
|`SemVer`| The semantical version number, including `PreReleaseTagWithDash` for pre-release version numbers. |
59
-
|`AssemblySemVer`| Suitable for .NET `AssemblyVersion`. Defaults to `Major.Minor.0.0` to allow the assembly to be hotfixed without breaking existing applications that may be referencing it. |
60
-
|`AssemblySemFileVer`| Suitable for .NET `AssemblyFileVersion`. Defaults to `Major.Minor.Patch.0`. |
61
-
|`InformationalVersion`| Suitable for .NET `AssemblyInformationalVersion`. Defaults to `FullSemVer` suffixed by `FullBuildMetaData`. |
62
-
|`FullSemVer`| The full, SemVer 2.0 compliant version number. |
63
-
|`BranchName`| The name of the checked out Git branch. |
64
-
|`EscapedBranchName`| Equal to `BranchName`, but with `/` replaced with `-`. |
65
-
|`Sha`| The SHA of the Git commit. |
66
-
|`ShortSha`| The `Sha` limited to 7 characters. |
67
-
|`VersionSourceSha`| The SHA of the commit used as version source. |
68
-
|`CommitsSinceVersionSource`| The number of commits since the version source. |
69
-
|`CommitDate`| The ISO-8601 formatted date of the commit identified by `Sha`. |
70
-
|`UncommittedChanges`| The number of uncommitted changes present in the repository. |
|`Major`| The major version. Should be incremented on breaking changes. |
48
+
|`Minor`| The minor version. Should be incremented on new features. |
49
+
|`Patch`| The patch version. Should be incremented on bug fixes. |
50
+
|`PreReleaseTag`| The pre-release tag is the pre-release label suffixed by the `PreReleaseNumber`. |
51
+
|`PreReleaseTagWithDash`| The pre-release tag prefixed with a dash. |
52
+
|`PreReleaseLabel`| The pre-release label. |
53
+
|`PreReleaseLabelWithDash`| The pre-release label prefixed with a dash. |
54
+
|`PreReleaseNumber`| The pre-release number. |
55
+
|`WeightedPreReleaseNumber`| A summation of branch specific `pre-release-weight` and the `PreReleaseNumber`. Can be used to obtain a monotonically increasing version number across the branches. |
56
+
|`BuildMetaData`| The build metadata, usually representing number of commits since the `VersionSourceSha`. Despite its name, will not increment for every build. |
57
+
|`FullBuildMetaData`| The `BuildMetaData` suffixed with `BranchName` and `Sha`. |
58
+
|`MajorMinorPatch`|`Major`, `Minor` and `Patch` joined together, separated by `.`. |
59
+
|`SemVer`| The semantical version number, including `PreReleaseTagWithDash` for pre-release version numbers. |
60
+
|`AssemblySemVer`| Suitable for .NET `AssemblyVersion`. Defaults to `Major.Minor.0.0` to allow the assembly to be hotfixed without breaking existing applications that may be referencing it. |
61
+
|`AssemblySemFileVer`| Suitable for .NET `AssemblyFileVersion`. Defaults to `Major.Minor.Patch.0`. |
62
+
|`InformationalVersion`| Suitable for .NET `AssemblyInformationalVersion`. Defaults to `FullSemVer` suffixed by `FullBuildMetaData`. |
63
+
|`FullSemVer`| The full, SemVer 2.0 compliant version number. |
64
+
|`BranchName`| The name of the checked out Git branch. |
65
+
|`EscapedBranchName`| Equal to `BranchName`, but with `/` replaced with `-`. |
66
+
|`Sha`| The SHA of the Git commit. |
67
+
|`ShortSha`| The `Sha` limited to 7 characters. |
68
+
|`VersionSourceSha`| The SHA of the commit used as version source. |
69
+
|`CommitsSinceVersionSource`| (Deprecated: use `VersionSourceDistance` instead) The number of commits since the version source. |
70
+
|`VersionSourceDistance`| The number of commits since the version source. |
71
+
|`CommitDate`| The ISO-8601 formatted date of the commit identified by `Sha`. |
72
+
|`UncommittedChanges`| The number of uncommitted changes present in the repository. |
71
73
72
74
Depending on how and in which context GitVersion is executed (for instance
73
75
within a [supported build server][build-servers]), the above version variables
0 commit comments