Ubiquity.NET.Versioning 5.0.0-rc.1

This is a prerelease version of Ubiquity.NET.Versioning.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Ubiquity.NET.Versioning --version 5.0.0-rc.1
                    
NuGet\Install-Package Ubiquity.NET.Versioning -Version 5.0.0-rc.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="Ubiquity.NET.Versioning" Version="5.0.0-rc.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ubiquity.NET.Versioning" Version="5.0.0-rc.1" />
                    
Directory.Packages.props
<PackageReference Include="Ubiquity.NET.Versioning" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ubiquity.NET.Versioning --version 5.0.0-rc.1
                    
#r "nuget: Ubiquity.NET.Versioning, 5.0.0-rc.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.
#addin nuget:?package=Ubiquity.NET.Versioning&version=5.0.0-rc.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Ubiquity.NET.Versioning&version=5.0.0-rc.1&prerelease
                    
Install as a Cake Tool

About

The Ubiquity.NET.Versioning library provides types to support use of a Constrained Semantic Version (CSemVer) in a build. It is viable as a standalone package to allow validation of or comparisons to versions reported at runtime. (Especially from native interop that does not support NuGet package dependencies or versioning at runtime.)

Example

var epectedMinimum = new CSemVer(20, 1, 5, "alpha");
var actual = CSemVer.From(SomeAPIToRetrieveAVersionAsUInt64());
if (actual < expectedMinimum)
{
    // Uh-OH! "older" version!
}

// Good to go...

Formatting

The library also contains support for proper formatting of strings based on the rules of a CSemVer

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.4 80 6/28/2025
5.0.3-alpha 74 6/27/2025
5.0.1-alpha 74 6/27/2025
5.0.0-rc.1 261 6/10/2025
5.0.0-rc 184 6/4/2025
4.0.0-a 134 5/21/2025