Table of Contents

Class SetGitVersionTask

Namespace
Cake.Frosting.PleOps.Recipe.Common
Assembly
Cake.Frosting.PleOps.Recipe.dll

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 PleOpsBuildContext

Build context.

Exceptions

Exception

GitVersion failed.

FormatException

Invalid output from GitVersion.