Summary
GitVersion information.
- Namespace
- Cake
.Common .Tools .GitVersion - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["GitVersion"]
class Type type-node
Syntax
public sealed class GitVersion
Properties
| Name | Value | Summary |
|---|---|---|
| AssemblySemFileVer | string |
Gets or sets the assembly semantic file version.
|
| AssemblySemVer | string |
Gets or sets the assembly Semantic Version.
|
| BranchName | string |
Gets or sets the branch name.
|
| BuildMetaData | string |
Gets or sets the build metadata.
|
| BuildMetaDataPadded | string |
Gets or sets the build metadata padded.
|
| CommitDate | string |
Gets or sets the commit date.
|
| Commits |
int? |
Gets or sets the commits since version source.
|
| Commits |
string |
Gets or sets the commits since version source padded.
|
| EscapedBranchName | string |
Gets or sets the escaped branch name.
|
| FullBuildMetaData | string |
Gets or sets the major version.
|
| FullSemVer | string |
Gets or sets the full Semantic Version.
|
| InformationalVersion | string |
Gets or sets the informational version.
|
| LegacySemVer | string |
Gets or sets the legacy Semantic Version.
|
| LegacySemVerPadded | string |
Gets or sets the padded legacy Semantic Version.
|
| Major | int |
Gets or sets the major version.
|
| MajorMinorPatch | string |
Gets or sets the major, minor, and path.
|
| Minor | int |
Gets or sets the minor version.
|
| NuGetPreReleaseTag | string |
Gets or sets the NuGet pre-release tag.
|
| NuGetPreReleaseTagV2 | string |
Gets or sets the NuGet pre-release tag for v2.
|
| NuGetVersion | string |
Gets or sets the NuGet version.
|
| NuGetVersionV2 | string |
Gets or sets the NuGet version for v2.
|
| Patch | int |
Gets or sets the patch version.
|
| PreReleaseLabel | string |
Gets or sets the pre-release label.
|
| Pre |
string |
Gets or sets the pre-release label with dash.
|
| PreReleaseNumber | int? |
Gets or sets the pre-release number.
|
| PreReleaseTag | string |
Gets or sets the pre-release tag.
|
| Pre |
string |
Gets or sets the pre-release tag with dash.
|
| SemVer | string |
Gets or sets the Semantic Version.
|
| Sha | string |
Gets or sets the Git SHA.
|
| ShortSha | string |
Gets or sets the shortened Git SHA.
|
| UncommittedChanges | int? |
Gets or sets the number of uncommited changes.
|
| VersionSourceSha | string |
Gets or sets the version source sha.
|
| Weighted |
int? |
Gets or sets the weighted pre-release number.
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
| IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
| NotNull |
void |
Throws an exception if the specified parameter's value is null.
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
| NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
| ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
| ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
| ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
| To |
string |
Returns the string value or a
Not set> markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|
