Class VersionResult
Models the result object returned from version calculation.
Inheritance
Inherited Members
Namespace: SimpleVersion
Assembly: SimpleVersion.Abstractions.dll
Syntax
public class VersionResult
Properties
| Improve this Doc View SourceBranchName
Gets or sets the friendly branch name of the current branch.
Declaration
public string BranchName { get; set; }
Property Value
Type | Description |
---|---|
System. |
CanonicalBranchName
Gets or sets the full canonical name of the current branch.
Declaration
public string CanonicalBranchName { get; set; }
Property Value
Type | Description |
---|---|
System. |
Formats
Gets the collection of generated version strings.
Declaration
public IDictionary<string, string> Formats { get; }
Property Value
Type | Description |
---|---|
System. |
Height
Gets or sets the calculated height.
Declaration
public int Height { get; set; }
Property Value
Type | Description |
---|---|
System. |
HeightPadded
Gets the height as a 0 padded four digit string.
Declaration
public string HeightPadded { get; }
Property Value
Type | Description |
---|---|
System. |
IsPullRequest
Gets a value indicating whether the current branch is a pull request.
Declaration
public bool IsPullRequest { get; }
Property Value
Type | Description |
---|---|
System. |
IsRelease
Gets or sets a value indicating whether the result is from a release configuration.
Declaration
public bool IsRelease { get; set; }
Property Value
Type | Description |
---|---|
System. |
Major
Gets or sets the generated major version part.
Declaration
public int Major { get; set; }
Property Value
Type | Description |
---|---|
System. |
Minor
Gets or sets the generated minor version part.
Declaration
public int Minor { get; set; }
Property Value
Type | Description |
---|---|
System. |
Patch
Gets or sets the generated patch version part.
Declaration
public int Patch { get; set; }
Property Value
Type | Description |
---|---|
System. |
PullRequestNumber
Gets the pull request number (if the current branch is a pull request).
Declaration
public int PullRequestNumber { get; }
Property Value
Type | Description |
---|---|
System. |
RepositoryPath
Gets or sets the path to the repository.
Declaration
public string RepositoryPath { get; set; }
Property Value
Type | Description |
---|---|
System. |
Revision
Gets or sets the generated revision version part.
Declaration
public int Revision { get; set; }
Property Value
Type | Description |
---|---|
System. |
Sha
Gets or sets the full sha of the current commit.
Declaration
public string Sha { get; set; }
Property Value
Type | Description |
---|---|
System. |
Sha7
Gets the shortened (7 char) sha of the current commit.
Declaration
public string Sha7 { get; }
Property Value
Type | Description |
---|---|
System. |
Version
Gets or sets the generated version.
Declaration
public string Version { get; set; }
Property Value
Type | Description |
---|---|
System. |