You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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

DotNet Properties

NameDescriptionTypeUsage Example
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")

Semantic Properties

NameDescriptionTypeUsage Example
BuildThe build component of the version numberInteger$Build.Version.Semantic.Build$"0" (given "1.2.0.1287")
MajorThe major component of the version numberInteger$Build.Version.Semantic.Major$"1" (given "1.2.0.1287")
MajorRevisionThe high 16 bits of the revision component of the version numberInteger$Build.Version.Semantic.MajorRevision$"1" (given "1.2.0.1287")
MinorThe minor component of the version numberInteger$Build.Version.Semantic.Minor$"2" (given "1.2.0.1287")
MinorRevisionThe low 6 bits of the revision component of the version numberInteger$Build.Version.Semantic.MinorRevision$"1" (given "1.2.0.1287")
RevisionThe revision component of the version numberInteger$Build.Version.Semantic.Revision$"1287" (given "1.2.0.1287")
  • No labels