Altemiq.Protobuf 1.0.1

dotnet add package Altemiq.Protobuf --version 1.0.1
                    
NuGet\Install-Package Altemiq.Protobuf -Version 1.0.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="Altemiq.Protobuf" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Altemiq.Protobuf" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Altemiq.Protobuf" />
                    
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 Altemiq.Protobuf --version 1.0.1
                    
#r "nuget: Altemiq.Protobuf, 1.0.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.
#:package Altemiq.Protobuf@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Altemiq.Protobuf&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Altemiq.Protobuf&version=1.0.1
                    
Install as a Cake Tool

build nuget

Altemiq.Protobuf

About

C# bindings for Altemiq's protobuf well-known types — SemanticVersion, Uuid and Version — plus interop helpers that bridge the gaps between System.Guid, System.Version and protobuf's JSON mapping.

These types are the wire-compatible C# counterparts to the .proto definitions shipped by Altemiq.Grpc.Tools, so values you serialize here round-trip cleanly with services that compile the same .proto files.

Key Features

  • SemanticVersion — strict SemVer 2.0: Parse, TryParse, full comparison operators, IsPrerelease
  • Uuid — RFC 4122 UUIDs with NewUuid(), CreateVersion7() (time-ordered, .NET 9+), ForGuid, Parse, comparison operators, and IComparable<Guid>
  • Version — assembly/OS/CLR version numbers with Parse, TryParse, MajorRevision/MinorRevision, and comparison operators
  • Interop with .NET: Guid ⇄ Uuid, System.Version ⇄ Version / SemanticVersion
  • JSON interop: JsonDocument ⇄ Struct, JsonElement/JsonNode ⇄ Value (on netstandard2.0+ / .NET 4.6.1+)
  • Targets netstandard1.1 up to .NET 9

How to Use

Installation

dotnet add package Altemiq.Protobuf

Semantic versions

using Altemiq.Protobuf.WellKnownTypes;

var v = SemanticVersion.Parse("1.2.3-beta+build.4");
var major = v.Major;                    // 1
var prerelease = v.IsPrerelease;        // true

var latest = SemanticVersion.Parse("2.0.0");
var older = SemanticVersion.Parse("1.9.9");
var isOlder = older < latest;           // true

UUIDs

using Altemiq.Protobuf.WellKnownTypes;

var uuid = Uuid.NewUuid();                       // random v4
var ordered = Uuid.CreateVersion7();             // time-ordered v7 (.NET 9+)
var fromGuid = Uuid.ForGuid(Guid.NewGuid());

var parsed = Uuid.Parse("6ba7b811-9dad-11d1-80b4-00c04fd430c8");

Guid roundTrip = parsed.ToGuid();                // back to System.Guid

System versions

using Altemiq.Protobuf.WellKnownTypes;

var version = Version.Parse("4.8.9037");
int major = version.Major;                       // 4
int revision = version.Revision;                 // 9037

System.Version dotnet = version.ToVersion();     // back to System.Version

JSON interop

using System.Text.Json;
using Altemiq.Protobuf;

// JSON object -> protobuf Struct
using var document = JsonDocument.Parse(""" { "name": "Altemiq", "count": 3 } """);
var str = document.ToStruct();

// protobuf Value -> JSON element
var element = str.Fields["name"].Value.ToJsonElement();

Main Types

Type Description
Altemiq.Protobuf.WellKnownTypes.SemanticVersion Strict SemVer 2.0 version with Parse, comparison operators, IsPrerelease
Altemiq.Protobuf.WellKnownTypes.Uuid RFC 4122 UUID with NewUuid, CreateVersion7, ForGuid, comparison operators
Altemiq.Protobuf.WellKnownTypes.Version Assembly/OS/CLR version with Parse, MajorRevision, MinorRevision
Altemiq.Protobuf.ProtobufExtensions Interop: Guid ⇄ Uuid, System.Version ⇄ Version/SemanticVersion, JsonDocument ⇄ Struct, JsonElement/JsonNode ⇄ Value

Feedback & Contributing

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  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 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 is compatible.  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. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard1.1 is compatible.  netstandard1.2 was computed.  netstandard1.3 was computed.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 is compatible.  net462 is compatible.  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 tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Windows Phone wpa81 was computed. 
Windows Store netcore was computed.  netcore45 was computed.  netcore451 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

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
1.0.1 119 12/1/2026
1.0.1-beta.5 51 12/1/2026
1.0.1-beta.4 79 11/12/2026
1.0.1-beta.3 111 7/10/2026
1.0.1-beta.2 109 6/23/2026
1.0.1-beta.1 99 6/22/2026
1.0.1-beta.0 113 2/18/2026
1.0.1-beta 168 1/15/2026
1.0.0 3,880 11/19/2025
1.0.0-beta.4 436 11/18/2025
1.0.0-beta.3 328 11/17/2025
1.0.0-beta.2 213 10/16/2025
1.0.0-beta.1 473 10/9/2025
1.0.0-beta.0 878 7/9/2025
1.0.0-beta 248 7/8/2025