dotnet/Nerdbank.GitVersioning

Creates deterministic versions using git

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
pathThe path to the directory for which the version should be determined. This should be at or below the directory containing the version.json file. Default is repo root directory.no.
setAllVarsDefines ALL version variables as environment variables, with a "NBGV_" prefix.nofalse
setCommonVarsDefines a few common version variables as environment variables, with a "Git" prefix (e.g. GitBuildVersion, GitBuildVersionSimple, GitAssemblyInformationalVersion).nofalse
stampThe path to a file whose version setting should be changed to match the computed version. Supported file types: `package.json`.no
toolVersionThe version of the nbgv dotnet CLI tool to install and use. If not specified, the default is the latest stable version.no
toolFeedAn additional feed to search for the nbgv dotnet CLI tool. Default feeds may include https://api.nuget.org/v3/index.json or whatever is specified in a nuget.config file at the root of your repo.no
namedescription
CloudBuildNumberThe cloud build number
VersionFileFoundA boolean value indicating whether a version.json file was found.
AssemblyVersionThe version to be used as the .NET assembly version.
AssemblyFileVersionThe version to be used as the .NET assembly file version.
AssemblyInformationalVersionThe version to be used as the .NET assembly informational version.
PublicReleaseA boolean value indicating whether this build is recognized as building from a public release branch.
PrereleaseVersionThe prerelease/unstable suffix to the version, including the hyphen.
PrereleaseVersionNoLeadingHyphenThe prerelease/unstable suffix to the version, without the leading hyphen.
SimpleVersionThe first 3 integers of the version.
BuildNumberThe build number (i.e. the third integer or PATCH) for this version.
VersionRevisionThe fourth integer component of the version.
MajorMinorVersionThe "major.minor" portion of the version.
VersionMajorThe first integer of the version.
VersionMinorThe second integer of the version.
GitCommitIdThe full SHA1 hash of the HEAD commit.
GitCommitIdShortA truncated SHA1 hash of the HEAD commit (usually 10 characters)
GitCommitDateThe date of the git commit at HEAD
VersionHeightThe number of commits in the longest single path between the specified commit and the most distant ancestor (inclusive) that set the version to the value at HEAD.
VersionHeightOffsetThe offset to add to VersionHeight when calculating the BuildNumber or wherever else the VersionHeight is used.
VersionThe four integer version.
BuildMetadataFragmentThe +metadata portion of the version, if any.
NuGetPackageVersionThe version to be used for NuGet packages.
ChocolateyPackageVersionThe version to be used for Chocolatey packages.
NpmPackageVersionThe version to be used for NPM packages.
SemVer1The SemVer 1.0 compliant version.
SemVer2The SemVer 2.0 compliant version.