GitVersioningAliases.

GitVersioningGetVersion(ICakeContext, string) Method

Summary

Gets the Git Versioning version from the current repo.

Syntax

public static VersionOracle GitVersioningGetVersion(this ICakeContext context, string projectDirectory = ".")

Examples

Task("GetVersion") .Does(() => { Information(GetVersioningGetVersion().SemVer2) });

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
projectDirectory string Directory to start the search for version.json.

Return Value

Type Description
VersionOracle The version information from Git Versioning.