Nerdbank.MessagePack
0.12.14-rc
Prefix Reserved
dotnet add package Nerdbank.MessagePack --version 0.12.14-rc
NuGet\Install-Package Nerdbank.MessagePack -Version 0.12.14-rc
<PackageReference Include="Nerdbank.MessagePack" Version="0.12.14-rc" />
<PackageVersion Include="Nerdbank.MessagePack" Version="0.12.14-rc" />
<PackageReference Include="Nerdbank.MessagePack" />
paket add Nerdbank.MessagePack --version 0.12.14-rc
#r "nuget: Nerdbank.MessagePack, 0.12.14-rc"
#:package Nerdbank.MessagePack@0.12.14-rc
#addin nuget:?package=Nerdbank.MessagePack&version=0.12.14-rc&prerelease
#tool nuget:?package=Nerdbank.MessagePack&version=0.12.14-rc&prerelease
Nerdbank.MessagePack
A modern, fast and NativeAOT-compatible MessagePack serialization library
This is a fast and more user-friendly MessagePack serialization library for .NET and .NET Framework. This package is brought to you by one of the two major contributors to MessagePack-CSharp. As its natural successor, this library comes packed with features that its predecessor lacks, and has ongoing support.
Features
- Serializes in the compact and fast MessagePack format.
- Performance is on par with the highly tuned and popular MessagePack-CSharp library.
- Automatically serialize any type annotated with the PolyType
[GenerateShape]attribute or non-annotated types by adding a 'witness' type with a similar annotation. - Fast
ref-based serialization and deserialization minimizes copying of large structs. - NativeAOT and trimming compatible.
- Serialize only properties that have non-default values (optionally).
- Keep memory pressure low by using async serialization directly to/from I/O like a network, IPC pipe or file.
- Streaming deserialization for large or over-time sequences.
- Primitive msgpack reader and writer APIs for low-level scenarios.
- Author custom converters for advanced scenarios.
- Security mitigations for stack overflows.
- Optionally serialize your custom types as arrays of values instead of maps of names and value for more compact representation and even higher performance.
- Support for serializing instances of certain types derived from the declared type and deserializing them back to their original runtime types using unions.
- Optionally preserve reference equality across serialization/deserialization.
- Structural (i.e. deep, by-value) equality checking for arbitrary types, both with and without collision resistant hash functions.
See how these features and more compare with the leading MessagePack library.
| Product | Versions 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 | 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 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. 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. |
-
.NETFramework 4.7.2
- Microsoft.Bcl.HashCode (>= 6.0.0)
- Microsoft.NET.StringTools (>= 18.0.2)
- Microsoft.VisualStudio.Validation (>= 17.13.22)
- PolyType (>= 1.0.0-rc.9)
- System.Collections.Immutable (>= 8.0.0)
- System.IO.Pipelines (>= 8.0.0)
- System.Text.Json (>= 8.0.6)
-
.NETStandard 2.0
- Microsoft.Bcl.HashCode (>= 6.0.0)
- Microsoft.NET.StringTools (>= 18.0.2)
- Microsoft.VisualStudio.Validation (>= 17.13.22)
- PolyType (>= 1.0.0-rc.9)
- System.Collections.Immutable (>= 8.0.0)
- System.IO.Pipelines (>= 8.0.0)
- System.Text.Json (>= 8.0.6)
-
net8.0
- Microsoft.NET.StringTools (>= 18.0.2)
- Microsoft.VisualStudio.Validation (>= 17.13.22)
- PolyType (>= 1.0.0-rc.9)
- System.IO.Pipelines (>= 8.0.0)
-
net9.0
- Microsoft.NET.StringTools (>= 18.0.2)
- Microsoft.VisualStudio.Validation (>= 17.13.22)
- PolyType (>= 1.0.0-rc.9)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Nerdbank.MessagePack:
| Package | Downloads |
|---|---|
|
Nerdbank.MessagePack.SignalR
SignalR Hub Protocol implementation using Nerdbank.MessagePack for fast and efficient binary serialization. |
|
|
Nerdbank.MessagePack.AspNetCoreMvcFormatter
ASP.NET Core MVC Input/Output MessagePack formatter using Nerdbank.MessagePack for fast and efficient binary serialization. |
|
|
ServiceModel.Grpc.Nerdbank.MessagePackMarshaller
Library that enables applications to communicate with gRPC services using code-first approach, helps to get around some limitations of gRPC protocol. Provides exception handling. Helps to migrate existing WCF solution to gRPC with minimum effort. |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Nerdbank.MessagePack:
| Repository | Stars |
|---|---|
|
microsoft/vs-streamjsonrpc
The StreamJsonRpc library offers JSON-RPC 2.0 over any .NET Stream, WebSocket, or Pipe. With bonus support for request cancellation, client proxy generation, and more.
|
|
|
max-ieremenko/ServiceModel.Grpc
Code-first for gRPC
|
| Version | Downloads | Last Updated |
|---|---|---|
| 0.12.14-rc | 250 | 11/24/2025 |
| 0.12.4-rc | 485 | 11/17/2025 |
| 0.12.2-rc | 440 | 11/14/2025 |
| 0.11.60-rc | 1,076 | 11/12/2025 |
| 0.11.54-rc | 346 | 11/7/2025 |
| 0.11.53-rc | 69 | 11/7/2025 |
| 0.11.50-rc | 137 | 11/7/2025 |
| 0.11.34-rc | 791 | 11/2/2025 |
| 0.11.8-rc | 1,758 | 10/23/2025 |
| 0.11.6-rc | 212 | 10/19/2025 |
| 0.11.1-rc | 59 | 10/17/2025 |
| 0.10.95-rc | 138 | 10/14/2025 |
| 0.10.89-rc | 87 | 10/11/2025 |
| 0.10.87-rc | 123 | 10/10/2025 |
| 0.10.63-rc | 570 | 10/1/2025 |
| 0.10.60-rc | 136 | 9/30/2025 |
| 0.10.42-rc | 416 | 9/26/2025 |
| 0.10.33-rc | 301 | 9/21/2025 |
| 0.10.25-rc | 760 | 9/16/2025 |
| 0.10.7-rc | 399 | 9/12/2025 |
| 0.10.2-rc | 143 | 9/11/2025 |
| 0.9.35-rc | 322 | 9/10/2025 |
| 0.9.26-rc | 145 | 9/9/2025 |
| 0.9.23-rc | 136 | 9/7/2025 |
| 0.9.14-rc | 636 | 9/4/2025 |
| 0.9.12-rc | 369 | 9/4/2025 |
| 0.8.131-rc | 854 | 8/26/2025 |
| 0.8.128-rc | 185 | 8/26/2025 |
| 0.8.111-rc | 142 | 8/21/2025 |
| 0.8.102-rc | 2,190 | 8/16/2025 |
| 0.8.92-rc | 179 | 8/9/2025 |
| 0.8.90-rc | 253 | 8/7/2025 |
| 0.8.82-rc | 2,153 | 8/3/2025 |
| 0.8.67-rc | 140 | 7/27/2025 |
| 0.8.54-rc | 573 | 7/21/2025 |
| 0.8.46-rc | 475 | 7/21/2025 |
| 0.8.30-rc | 265 | 6/27/2025 |
| 0.8.1-rc | 551 | 6/12/2025 |
| 0.7.1-beta | 290 | 6/10/2025 |
| 0.6.27-beta | 168 | 6/3/2025 |
| 0.6.7-beta | 121 | 5/25/2025 |
| 0.6.1-beta | 145 | 5/20/2025 |
| 0.5.80-beta | 198 | 5/1/2025 |
| 0.5.72-beta | 176 | 4/23/2025 |
| 0.5.57-beta | 142 | 4/23/2025 |
| 0.5.37-beta | 143 | 3/29/2025 |
| 0.5.1-beta | 184 | 3/18/2025 |
| 0.4.5-beta | 279 | 3/4/2025 |
| 0.3.161-beta | 184 | 2/3/2025 |
| 0.3.151-beta | 92 | 2/2/2025 |
| 0.3.120-beta | 118 | 1/26/2025 |
| 0.3.38-beta | 343 | 12/15/2024 |
| 0.3.27-alpha | 155 | 12/13/2024 |
| 0.3.2-alpha | 95 | 12/8/2024 |
| 0.2.108-alpha | 112 | 12/4/2024 |
| 0.2.82-alpha | 118 | 11/26/2024 |
| 0.2.52-alpha | 90 | 11/18/2024 |
| 0.2.34-alpha | 85 | 11/17/2024 |
| 0.2.2-alpha | 97 | 11/12/2024 |
| 0.1.734-alpha-g09268fd45c | 115 | 11/7/2024 |
| 0.1.705-alpha-gad428877b7 | 79 | 11/5/2024 |