Skip to content

Methods

Name
Parse
TryParse
NextMajorVersion
NextMinorVersion
NextPatchVersion

Example

cs
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

NOTE

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.

Released under the MIT License.