Semver 3.0.0-beta.1

This is a prerelease version of Semver.
dotnet add package Semver --version 3.0.0-beta.1
NuGet\Install-Package Semver -Version 3.0.0-beta.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Semver" Version="3.0.0-beta.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Semver --version 3.0.0-beta.1
#r "nuget: Semver, 3.0.0-beta.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Semver as a Cake Addin
#addin nuget:?package=Semver&version=3.0.0-beta.1&prerelease

// Install Semver as a Cake Tool
#tool nuget:?package=Semver&version=3.0.0-beta.1&prerelease

A Semantic Version Library for .Net

Create, parse, and manipulate semantic version numbers with the SemVersion class and semantic version ranges with the SemVersionRange class. This library complies with v2.0.0 of the semantic versioning spec from

API docs for the most recent release are available online at


var version = SemVersion.Parse("1.1.0-rc.1+e471d15", SemVersionStyles.Strict);


var v1 = new SemVersion(1, 0);
var vNextRc = SemVersion.ParsedFrom(1, 1, 0, "rc.1");


if (version.ComparePrecedenceTo(vNextRc) == 0)
    Console.WriteLine($"{version} has the same precedence as {vNextRc}");

if (version.CompareSortOrderTo(vNextRc) > 0)
    Console.WriteLine($"{version} sorts after {vNextRc}");


1.1.0-rc.1+e471d15 has the same precedence as 1.1.0-rc.1
1.1.0-rc.1+e471d15 sorts after 1.1.0-rc.1


Console.WriteLine($"Current: {version}");
if (version.IsPrerelease)
    Console.WriteLine($"Prerelease: {version.Prerelease}");
    Console.WriteLine($"Next release version is: {version.WithoutPrereleaseOrMetadata()}");


Current: 1.1.0-rc.1+nightly.2345
Prerelease: rc.1
Next release version is: 1.1.0

Version Ranges

var range = SemVersionRange.Parse("^1.0.0");
var prereleaseRange = SemVersionRange.ParseNpm("^1.0.0", includeAllPrerelease: true);
Console.WriteLine($"Range: {range}");
Console.WriteLine($"Prerelease range: {prereleaseRange}");
Console.WriteLine($"Range includes version {version}: {range.Contains(version)}");
Console.WriteLine($"Prerelease range includes version {version}: {prereleaseRange.Contains(version)}");

// Alternative: another way to call SemVersionRange.Contains(version)

// Alternative: slower because it parses the range on every call
version.SatisfiesNpm("^1.0.0", includeAllPrerelease: true)


Range: 1.*
Prerelease range: *-* 1.*
Range includes version 1.1.0-rc.1+e471d15: False
Prerelease range includes version 1.1.0-rc.1+e471d15: True
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (84)

Showing the top 5 NuGet packages that depend on Semver:

Package Downloads
UmbracoCms.Core The ID prefix of this package has been reserved for one of the owners of this package by

Contains the core assemblies needed to run Umbraco Cms. This package only contains assemblies and can be used for package development. Use the UmbracoCms package to setup Umbraco in Visual Studio as an ASP.NET project.

Pulumi The ID prefix of this package has been reserved for one of the owners of this package by

The Pulumi .NET SDK lets you write cloud programs in C#, F#, and VB.NET.


Package Description


Package Description


Cake Build addon to provide Semantice Versioning classes and aliases.

GitHub repositories (33)

Showing the top 5 popular GitHub repositories that depend on Semver:

Repository Stars
Tye is a tool that makes developing, testing, and deploying microservices and distributed applications easier. Project Tye includes a local orchestrator to make developing microservices easier and the ability to deploy microservices to Kubernetes with minimal configuration.
Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.
Multi-Platform Package Manager for Stable Diffusion
A self-hosted Fuzzing-As-A-Service platform
Community Mod editor/creator for REDengine games.
Version Downloads Last updated
3.0.0-beta.1 8,631 8/21/2023
3.0.0-beta.0 3,961 5/7/2023
2.3.0 2,454,645 2/21/2023
2.3.0-beta.0 2,649 12/28/2022
2.3.0-alpha.0 6,180 7/17/2022
2.2.0 1,753,959 6/12/2022
2.2.0-rc.0 1,430 5/15/2022
2.1.0 3,332,808 3/19/2022
2.1.0-rc.1 358 3/19/2022
2.1.0-rc.0 595 3/7/2022
2.0.6 7,067,689 12/28/2019
2.0.5 293,080 10/27/2019
2.0.4 3,087,215 8/1/2016
2.0.3 16,159 7/31/2016
1.1.2 3,154,120 5/13/2014
1.1.1 3,826 11/24/2013
1.1.0 3,174 11/15/2013
1.0.5 2,654 7/1/2013
1.0.4 2,349 7/1/2013
1.0.3 2,481 1/10/2013
1.0.1 2,180 1/10/2013
1.0.0 3,160 1/9/2013