Skip to content

NerdbankGitVersioningTasksExt Class

Definition

Extended variant of the base Nuke.Common.Tools.NerdbankGitVersioning.NerdbankGitVersioningTasks class.

C#
public static class NerdbankGitVersioningTasksExt

Inheritance object

Remarks

Adapted from https://github.com/nuke-build/nuke/blob/develop/source/Nuke.Common/Tools/NerdbankGitVersioning/NerdbankGitVersioningTasks.cs

Properties

InstalledToolPath

Gets the installed tool path.

C#
public static AbsolutePath InstalledToolPath { get; }

Methods

Install()

Installs the NerdBank GitVersioning global tool.

C#
public static void Install()

GetVersion(string?)

Gets the NerdBank GitVersioning version details.

C#
public static NerdbankGitVersioningExt GetVersion(string? solutionDir = null)

Parameters

solutionDir string
The solution directory.

Returns

NerdbankGitVersioningExt
The NerdBank GitVersioning version details.

SetVersion(string, AbsolutePath?)

Sets the NerdBank GitVersioning version.

C#
public static void SetVersion(string version, AbsolutePath? solutionDir = null)

Parameters

version string
The version to set.

solutionDir Nuke.Common.IO.AbsolutePath
The solution directory.