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.HgVersion.
Summary
Set version tag to current commit.
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 |