Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The version object Version is used by the version property of the Build object.  It provides access to each component the version string 

Properties

NameDescriptionTypeUsage Example
DefaultA reference object for decomposing a version string using the default versioning formatDotNet$Build.Version.Default
DotNetA reference object for decomposing a version string using the .Net versioning formatDotNet$Build.Version.DotNet
SemanticA reference object for decomposing a version string using the Semantic versioning formatSemantic$Build.Version.Semantic


Anchor
DotNet
DotNet
DotNet Properties

NameDescriptionTypeUsage Example (given "1.2.3.4")
BuildThe build component of the version numberInteger$Build.Version.Default.Build$
"3" (given "1.2.
3
.4")
MajorThe major component of the version numberInteger$Build.Version.Default.Major$
"1" (given "
1
.2.3.4")
MinorThe minor component of the version numberInteger$Build.Version.Default.Minor$
"2" (given "1.
2
.3.4")
RevisionThe revision component of the version numberInteger$Build.Version.Default.Revision$
"4" (given "1.2.3.
4
")


Anchor
Semantic
Semantic
Semantic Properties

NameDescriptionTypeUsage Example
BuildThe build component of the version number
(given "1.2.1287-beta+meta")
IsPrereleaseTrue if pre-release labels exist for the versionBoolean
Integer
$Build.Version.Semantic.
Build$"0" (given "1.2.0.1287")
IsPrerelease$True
HasMetaDataTrue if metadata exists for the versionBoolean$Build.Version.Semantic.IsPrerelease$True
MajorThe major
component 
component of the version numberInteger$Build.Version.Semantic.Major$
"1" (given "
1
.2.0.1287")MajorRevisionThe high 16 bits of the revision
MetaDataThe metadata string after the plus at the end
component 
of the version number
Integer
String$Build.Version.Semantic.
MajorRevision$
MetaData$"
1" (given "1.2.0.1287")
meta"
MinorThe minor component of the version numberInteger$Build.Version.Semantic.Minor$
"
2
" (given "1.2.0.1287")MinorRevisionThe low 6 bits of the revision
PatchThe patch component
component 
of the version numberInteger$Build.Version.Semantic.
MinorRevision$
Revision$1287
ReleaseThe full pre-release label for the versionString
"1" (given "1.2.0.1287")RevisionThe revision component of the version numberInteger
$Build.Version.Semantic.Revision$"
1287" (given "1.2.0.1287")
beta"