Class GitVersionResult
- Namespace
- DotNetDo
- Assembly
- DotNetDo.Core.dll
The semantic version variables emitted by GitVersion.
public sealed record GitVersionResult : IEquatable<GitVersionResult>Properties
AdditionalVariables
Additional variables emitted by newer or customized GitVersion versions.
[JsonExtensionData]
public Dictionary<string, JsonElement> AdditionalVariables { get; init; }Property Value
AssemblySemFileVer
The assembly file version.
public string? AssemblySemFileVer { get; init; }Property Value
AssemblySemVer
The assembly version.
public string? AssemblySemVer { get; init; }Property Value
BranchName
The checked-out branch name.
public string? BranchName { get; init; }Property Value
BuildMetaData
The build metadata, usually commits since the version source.
public int? BuildMetaData { get; init; }Property Value
- int?
CommitDate
The commit timestamp parsed from forced round-trip output.
public DateTimeOffset CommitDate { get; init; }Property Value
CommitsSinceVersionSource
The deprecated count of commits since the version source.
public int? CommitsSinceVersionSource { get; init; }Property Value
- int?
EscapedBranchName
The branch name with path separators replaced.
public string? EscapedBranchName { get; init; }Property Value
FullBuildMetaData
Build metadata including branch and commit identity.
public string? FullBuildMetaData { get; init; }Property Value
FullSemVer
The complete SemVer 2.0 version.
public string? FullSemVer { get; init; }Property Value
InformationalVersion
The assembly informational version.
public string? InformationalVersion { get; init; }Property Value
Major
The major version component.
public int Major { get; init; }Property Value
MajorMinorPatch
The joined major, minor, and patch components.
public string? MajorMinorPatch { get; init; }Property Value
Minor
The minor version component.
public int Minor { get; init; }Property Value
Patch
The patch version component.
public int Patch { get; init; }Property Value
PreReleaseLabel
The prerelease label without punctuation.
public string? PreReleaseLabel { get; init; }Property Value
PreReleaseLabelWithDash
The prerelease label prefixed with a dash.
public string? PreReleaseLabelWithDash { get; init; }Property Value
PreReleaseNumber
The prerelease sequence number.
public int? PreReleaseNumber { get; init; }Property Value
- int?
PreReleaseTag
The prerelease label and sequence number.
public string? PreReleaseTag { get; init; }Property Value
PreReleaseTagWithDash
The prerelease tag prefixed with a dash.
public string? PreReleaseTagWithDash { get; init; }Property Value
SemVer
The semantic version excluding build metadata.
public string? SemVer { get; init; }Property Value
Sha
The complete commit SHA.
public string? Sha { get; init; }Property Value
ShortSha
The abbreviated commit SHA.
public string? ShortSha { get; init; }Property Value
UncommittedChanges
The number of uncommitted working-tree changes.
public int UncommittedChanges { get; init; }Property Value
VersionSourceDistance
The number of commits since the version source.
public int VersionSourceDistance { get; init; }Property Value
VersionSourceIncrement
The increment selected at the version source.
public string? VersionSourceIncrement { get; init; }Property Value
VersionSourceSemVer
The semantic version at the version source.
public string? VersionSourceSemVer { get; init; }Property Value
VersionSourceSha
The commit SHA of the version source.
public string? VersionSourceSha { get; init; }Property Value
WeightedPreReleaseNumber
The branch-weighted prerelease number.
public int? WeightedPreReleaseNumber { get; init; }Property Value
- int?