Aliases.

SetVersionTag(ICakeContext, DirectoryPath, VersionVariables) Method

Summary

Set version tag to current commit.
Assembly
Cake.HgVersion.dll
Namespace
Cake.HgVersion
Containing Type
Aliases

Syntax

public static bool SetVersionTag(this ICakeContext context, DirectoryPath repositoryPath, VersionVariables variables)

Examples

if (SetVersionTag("./src", version))
{
    Information("Semantic version tag set");
}

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext Cake context
repositoryPath DirectoryPath Path to repository
variables VersionVariables Version information variables

Return Value

Type Description
bool Returns true - if current commit has been tagged, otherwise - false