Cake.HgVersion

Cake AddIn that extends Cake with SemVer versioning using Mercurial history

#addin nuget:?package=Cake.HgVersion&version=0.2.0

<package id="Cake.HgVersion" version="0.2.0" />

dotnet add package Cake.HgVersion --version 0.2.0

<PackageReference Include="Cake.HgVersion" Version="0.2.0" />

Aliases

Contains functionality for versioning using Mercurial history.
#addin Cake.HgVersion

General

GetVersion(ICakeContext, DirectoryPath) Return information about current project version.
SetVersionTag(ICakeContext, DirectoryPath, VersionVariables) Set version tag to current commit.
UpdateAssemblyInfo(ICakeContext, VersionVariables, DirectoryPath, string) Update assembly info file or generate if threre is no such file.