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
Updates GitVersion variable models and build integrations to provide a full set of versioning details. Deprecates `CommitsSinceVersionSource` in favor of `VersionSourceDistance` for improved accuracy.
/// Gets or sets the assembly semantic file version. Suitable for .NET AssemblyFileVersion. Defaults to Major.Minor.Patch.0.
10
10
/// </summary>
11
-
publicintMajor{get;set;}
11
+
publicstring?AssemblySemFileVer{get;set;}
12
12
13
13
/// <summary>
14
-
/// Gets or sets the minor version.
14
+
/// Gets or sets the assembly Semantic Version. Suitable for .NET AssemblyVersion. Defaults to Major.Minor.0.0.
15
15
/// </summary>
16
-
publicintMinor{get;set;}
16
+
publicstring?AssemblySemVer{get;set;}
17
17
18
18
/// <summary>
19
-
/// Gets or sets the patch version.
19
+
/// Gets or sets the branch name. The name of the checked out Git branch.
20
20
/// </summary>
21
-
publicintPatch{get;set;}
21
+
publicstring?BranchName{get;set;}
22
22
23
23
/// <summary>
24
-
/// Gets or sets the pre-release tag.
24
+
/// Gets or sets the build metadata, usually representing number of commits since the VersionSourceSha.
25
25
/// </summary>
26
-
publicstring?PreReleaseTag{get;set;}
26
+
publicint?BuildMetaData{get;set;}
27
27
28
28
/// <summary>
29
-
/// Gets or sets the pre-release tag with dash.
29
+
/// Gets or sets the commit date. The ISO-8601 formatted date of the commit identified by Sha.
30
30
/// </summary>
31
-
publicstring?PreReleaseTagWithDash{get;set;}
31
+
publicstring?CommitDate{get;set;}
32
32
33
33
/// <summary>
34
-
/// Gets or sets the pre-release label.
34
+
/// Gets or sets the commits since version source.
35
35
/// </summary>
36
-
publicstring?PreReleaseLabel{get;set;}
36
+
[Obsolete("CommitsSinceVersionSource has been deprecated. Use VersionSourceDistance instead.")]
37
+
publicint?CommitsSinceVersionSource{get;set;}
37
38
38
39
/// <summary>
39
-
/// Gets or sets the pre-release number.
40
+
/// Gets or sets the escaped branch name. Equal to BranchName, but with / replaced with -.
40
41
/// </summary>
41
-
publicint?PreReleaseNumber{get;set;}
42
+
publicstring?EscapedBranchName{get;set;}
42
43
43
44
/// <summary>
44
-
/// Gets or sets the build metadata.
45
+
/// Gets or sets the full build metadata. The BuildMetaData suffixed with BranchName and Sha.
45
46
/// </summary>
46
-
publicstring?BuildMetaData{get;set;}
47
+
publicstring?FullBuildMetaData{get;set;}
47
48
48
49
/// <summary>
49
-
/// Gets or sets the major version.
50
+
/// Gets or sets the full Semantic Version. The full, SemVer 2.0 compliant version number.
50
51
/// </summary>
51
-
publicstring?FullBuildMetaData{get;set;}
52
+
publicstring?FullSemVer{get;set;}
52
53
53
54
/// <summary>
54
-
/// Gets or sets the major, minor, and path.
55
+
/// Gets or sets the informational version. Suitable for .NET AssemblyInformationalVersion. Defaults to FullSemVer suffixed by FullBuildMetaData.
56
+
/// </summary>
57
+
publicstring?InformationalVersion{get;set;}
58
+
59
+
/// <summary>
60
+
/// Gets or sets the major version. Should be incremented on breaking changes.
61
+
/// </summary>
62
+
publicint?Major{get;set;}
63
+
64
+
/// <summary>
65
+
/// Gets or sets the major, minor, and patch. Major, Minor and Patch joined together, separated by '.'.
55
66
/// </summary>
56
67
publicstring?MajorMinorPatch{get;set;}
57
68
58
69
/// <summary>
59
-
/// Gets or sets the Semantic Version.
70
+
/// Gets or sets the minor version. Should be incremented on new features.
60
71
/// </summary>
61
-
publicstring?SemVer{get;set;}
72
+
publicint?Minor{get;set;}
62
73
63
74
/// <summary>
64
-
/// Gets or sets the assembly Semantic Version.
75
+
/// Gets or sets the patch version. Should be incremented on bug fixes.
65
76
/// </summary>
66
-
publicstring?AssemblySemVer{get;set;}
77
+
publicint?Patch{get;set;}
67
78
68
79
/// <summary>
69
-
/// Gets or sets the assembly semantic file version.
80
+
/// Gets or sets the pre-release label. The pre-release label is the name of the pre-release.
70
81
/// </summary>
71
-
publicstring?AssemblySemFileVer{get;set;}
82
+
publicstring?PreReleaseLabel{get;set;}
72
83
73
84
/// <summary>
74
-
/// Gets or sets the full Semantic Version.
85
+
/// Gets or sets the pre-release label with dash. The pre-release label prefixed with a dash.
75
86
/// </summary>
76
-
publicstring?FullSemVer{get;set;}
87
+
publicstring?PreReleaseLabelWithDash{get;set;}
77
88
78
89
/// <summary>
79
-
/// Gets or sets the informational version.
90
+
/// Gets or sets the pre-release number. The pre-release number is the number of commits since the last version bump.
80
91
/// </summary>
81
-
publicstring?InformationalVersion{get;set;}
92
+
publicint?PreReleaseNumber{get;set;}
82
93
83
94
/// <summary>
84
-
/// Gets or sets the branch name.
95
+
/// Gets or sets the pre-release tag. The pre-release tag is the pre-release label suffixed by the PreReleaseNumber.
85
96
/// </summary>
86
-
publicstring?BranchName{get;set;}
97
+
publicstring?PreReleaseTag{get;set;}
98
+
99
+
/// <summary>
100
+
/// Gets or sets the pre-release tag with dash. The pre-release tag prefixed with a dash.
101
+
/// </summary>
102
+
publicstring?PreReleaseTagWithDash{get;set;}
87
103
88
104
/// <summary>
89
-
/// Gets or sets the Git SHA.
105
+
/// Gets or sets the Semantic Version. The semantic version number, including PreReleaseTagWithDash for pre-release version numbers.
106
+
/// </summary>
107
+
publicstring?SemVer{get;set;}
108
+
109
+
/// <summary>
110
+
/// Gets or sets the Git SHA. The SHA of the Git commit.
90
111
/// </summary>
91
112
publicstring?Sha{get;set;}
92
113
93
114
/// <summary>
94
-
/// Gets or sets the commits since version source.
115
+
/// Gets or sets the short SHA. The Sha limited to 7 characters.
95
116
/// </summary>
96
-
publicint?CommitsSinceVersionSource{get;set;}
117
+
publicstring?ShortSha{get;set;}
97
118
98
119
/// <summary>
99
-
/// Gets or sets the version source distance.
120
+
/// Gets or sets the number of uncommitted changes present in the repository.
121
+
/// </summary>
122
+
publicint?UncommittedChanges{get;set;}
123
+
124
+
/// <summary>
125
+
/// Gets or sets the version source distance. The number of commits since the version source.
100
126
/// </summary>
101
127
publicint?VersionSourceDistance{get;set;}
102
128
103
129
/// <summary>
104
-
/// Gets or sets the commit date.
130
+
/// Gets or sets the version source increment. The increment strategy used for the version calculation. Possible values: None, Patch, Minor, Major.
105
131
/// </summary>
106
-
publicstring?CommitDate{get;set;}
132
+
publicstring?VersionSourceIncrement{get;set;}
133
+
134
+
/// <summary>
135
+
/// Gets or sets the version source SemVer. The semantic version of the commit used as version source.
136
+
/// </summary>
137
+
publicstring?VersionSourceSemVer{get;set;}
138
+
139
+
/// <summary>
140
+
/// Gets or sets the version source SHA. The SHA of the commit used as version source.
141
+
/// </summary>
142
+
publicstring?VersionSourceSha{get;set;}
143
+
144
+
/// <summary>
145
+
/// Gets or sets the weighted pre-release number. A summation of branch specific pre-release-weight and the PreReleaseNumber. Can be used to obtain a monotonically increasing version number across the branches.
0 commit comments