Skip to content

Semantic Version (SemVer 2.0.0) Type for the .NET Framework

License

Notifications You must be signed in to change notification settings

xyncro/semver.net

Repository files navigation

SemVer.Net

Build

A SemVer 2.0.0 compliant SemanticVersion Type for .NET...

Installation

SemVer.Net can be installed from NuGet. Using the Package Manager Console:

PM> Install-Package SemVer.Net

Usage

Current usage is essentially as simple as a ctor which takes a string, or static Parse and TryParse methods on the type which behave as you would expect them to in .NET languages.

Rationale

I wanted a genuinely compliant, strict, SemVer 2.0.0 type to use in various places. Existing implementations rely on some slightly lenient regexes, rather than an actual parser - and I like writing parsers. This implementation will choke on everything* it should choke on, and sort everything properly that it should sort. Tests to give some idea of this are provided in the test/SemvVer.Tests project (specifically, here).

*Usual caveats apply when implementing standards. Factual cases to the contrary welcomed - even more welcomed when accompanied by tests and/or fixes as pull requests.

About

Semantic Version (SemVer 2.0.0) Type for the .NET Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published