GitVersion by GitTools and Contributors

<PackageReference Include="GitVersion" Version="3.6.5" />

.NET API 156,672 bytes

 SemanticVersion

public static SemanticVersion Empty

public int Major

public int Minor

public int Patch

public SemanticVersion(int major = 0, int minor = 0, int patch = 0)

public SemanticVersion(SemanticVersion semanticVersion)

public static bool op_Equality(SemanticVersion v1, SemanticVersion v2)

public static bool op_GreaterThan(SemanticVersion v1, SemanticVersion v2)

public static bool op_Inequality(SemanticVersion v1, SemanticVersion v2)

public static bool op_LessThan(SemanticVersion v1, SemanticVersion v2)

public static SemanticVersion Parse(string version, string tagPrefixRegex)

public static bool TryParse(string version, string tagPrefixRegex, out SemanticVersion semanticVersion)

public int CompareTo(SemanticVersion value)

public bool Equals(SemanticVersion obj)

public SemanticVersion IncrementVersion(VersionField incrementStrategy)

public bool IsEmpty()

public string ToString(string format, IFormatProvider formatProvider = null)

s - Default SemVer [1.2.3-beta.4+5]

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

i - Informational SemVer [1.2.3-beta.4+5.Branch.master.BranchType.Master.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]