This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.GitVersioning.
Summary
Gets the Git Versioning version from the current repo.
- Assembly
- Cake
.GitVersioning .dll - Namespace
- Cake
.GitVersioning - Containing Type
- GitVersioningAliases
Syntax
public static VersionOracle GitVersioningGetVersion(this ICakeContext cakeContext, string projectDirectory = ".")
Remarks
Example:
Task("GetVersion")
.Does(() =>
{
Information(GitVersioningGetVersion().SemVer2)
});
Attributes
Type | Description |
---|---|
Cake |
Parameters
Name | Type | Description |
---|---|---|
cakeContext | ICakeContext | The context. |
projectDirectory | string | Directory to start the search for version.json. |
Return Value
Type | Description |
---|---|
VersionOracle | The version information from Git Versioning. |