SemanticVersion.

ToString(string, IFormatProvider?) Method

Summary

s - Default SemVer [1.2.3-beta.4]

f - Full SemVer [1.2.3-beta.4+5]

i - Informational SemVer [1.2.3-beta.4+5.Branch.main.BranchType.main.Sha.000000]

j - Just the SemVer part [1.2.3]

t - SemVer with the tag [1.2.3-beta.4]

l - Legacy SemVer tag for systems which do not support SemVer 2.0 properly [1.2.3-beta4]

lp - Legacy SemVer tag for systems which do not support SemVer 2.0 properly (padded) [1.2.3-beta0004]

Namespace
GitVersion
Containing Type
SemanticVersion

Syntax

public string ToString(string format, IFormatProvider? formatProvider)

Parameters

Name Type Description
format string
formatProvider IFormatProvider?

Return Value

Type Description
string
GitHub