Nerdbank.MessagePack
0.1.734-alpha-g09268fd45c
Prefix Reserved
See the version list below for details.
dotnet add package Nerdbank.MessagePack --version 0.1.734-alpha-g09268fd45c
NuGet\Install-Package Nerdbank.MessagePack -Version 0.1.734-alpha-g09268fd45c
<PackageReference Include="Nerdbank.MessagePack" Version="0.1.734-alpha-g09268fd45c" />
<PackageVersion Include="Nerdbank.MessagePack" Version="0.1.734-alpha-g09268fd45c" />
<PackageReference Include="Nerdbank.MessagePack" />
paket add Nerdbank.MessagePack --version 0.1.734-alpha-g09268fd45c
#r "nuget: Nerdbank.MessagePack, 0.1.734-alpha-g09268fd45c"
#:package Nerdbank.MessagePack@0.1.734-alpha-g09268fd45c
#addin nuget:?package=Nerdbank.MessagePack&version=0.1.734-alpha-g09268fd45c&prerelease
#tool nuget:?package=Nerdbank.MessagePack&version=0.1.734-alpha-g09268fd45c&prerelease
Nerdbank.MessagePack
A modern, fast and NativeAOT-compatible MessagePack serialization library
Learn everything on our docs site.
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 TypeShape-csharp
[GenerateShape]attribute. - Automatically serialize 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.
- Keep memory pressure low by using async serialization directly to/from I/O like a network, IPC pipe or file.
- 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 bvalues 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.
| Product | Versions 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. |
-
net8.0
- Microsoft.VisualStudio.Validation (>= 17.8.8)
- Nerdbank.Streams (>= 2.11.79)
- typeshape-csharp (>= 0.14.1)
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 |
|---|---|---|
| 1.0.2 | 158 | 12/8/2025 |