Ghost1372

everything can be handy

SemanticVersion

Methods

Name
Parse
TryParse
NextMajorVersion
NextMinorVersion
NextPatchVersion

Example

1
2
3
4
5
6
7
8
9
SemanticVersion.TryParse("1.2.3-apha.1+build.1.2", out SemanticVersion version);

// version.HasMetadata
// version.Metadata
// version.IsPrerelease
// version.PrereleaseLabels
// version.Major
// version.Minor
// version.Patch

1.2.3
v1.2.3
1.2.3-alpha
1.2.3-alpha.1
1.2.3-apha.1+build
1.2.3-apha.1+build.1.2
1.2.3+build
1.2.3+build.1.2

Demo

you can run demo and see this feature.

0%