GitVersioningAliases.

GitVersioningGetVersion(ICakeContext, string) Method

Summary

Gets the Git Versioning version from the current repo.

Syntax

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

Remarks

Example:

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

Attributes

Type Description
CakeMethodAliasAttribute

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.