GitVersion by GitTools and Contributors

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

.NET API 156,672 bytes

 SemanticVersionPreReleaseTag

public string Name { get; set; }

public int? Number { get; set; }

public SemanticVersionPreReleaseTag(string name, int? number)

public static string op_Implicit(SemanticVersionPreReleaseTag preReleaseTag)

public static SemanticVersionPreReleaseTag op_Implicit(string preReleaseTag)

public static SemanticVersionPreReleaseTag Parse(string preReleaseTag)

public bool HasTag()

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

Default formats:

t - SemVer 2.0 formatted tag [beta.1]

l - Legacy SemVer tag with the tag number padded. [beta1]

lp - Legacy SemVer tag with the tag number padded. [beta0001]. Can specify an integer to control padding (i.e., lp5)