Class SetGitVersionTask
Cake Frosting task to set the project's version from the tool "GitVersion".
[TaskName("PleOps.Recipe.Common.SetGitVersion")]
[TaskDescription("Set the project's version using GitVersion tool")]
[IsDependentOn(typeof(RestoreToolsTask))]
public class SetGitVersionTask : FrostingTask<PleOpsBuildContext>, IFrostingTask
- Inheritance
-
SetGitVersionTask
- Implements
- Inherited Members
Remarks
It requires the dotnet tool: GitVersion.Tool.
Methods
Run(PleOpsBuildContext)
Run GitVersion tool to get the version.
public override void Run(PleOpsBuildContext context)
Parameters
context
PleOpsBuildContextBuild context.
Exceptions
- Exception
GitVersion failed.
- FormatException
Invalid output from GitVersion.