Skip to content

IHasGitVersion Interface

Definition

A build which has a Git version.

C#
public interface IHasGitVersion : INukeBuild

Properties

Versioning

Gets the Git versioning data.

C#
[NerdbankGitVersioning]
NerdbankGitVersioning? Versioning { get; }

AddGitVersioning

Gets a value indicating whether to add Nerdbank Git versioning metadata.

C#
bool AddGitVersioning { get; }

Methods

TrySetCloudBuildNumber()

Attempts to set the cloud build number, if configured with Git versioning and running on Azure DevOps.

C#
void TrySetCloudBuildNumber()