CasCap.Common.Serialization.MessagePack 4.16.0

Prefix Reserved
dotnet add package CasCap.Common.Serialization.MessagePack --version 4.16.0
                    
NuGet\Install-Package CasCap.Common.Serialization.MessagePack -Version 4.16.0
                    
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="CasCap.Common.Serialization.MessagePack" Version="4.16.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CasCap.Common.Serialization.MessagePack" Version="4.16.0" />
                    
Directory.Packages.props
<PackageReference Include="CasCap.Common.Serialization.MessagePack" />
                    
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 CasCap.Common.Serialization.MessagePack --version 4.16.0
                    
#r "nuget: CasCap.Common.Serialization.MessagePack, 4.16.0"
                    
#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 CasCap.Common.Serialization.MessagePack@4.16.0
                    
#: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=CasCap.Common.Serialization.MessagePack&version=4.16.0
                    
Install as a Cake Addin
#tool nuget:?package=CasCap.Common.Serialization.MessagePack&version=4.16.0
                    
Install as a Cake Tool

CasCap.Common.Serialization.MessagePack

MessagePack binary serialization helpers using the MessagePack-CSharp library.

Installation

dotnet add package CasCap.Common.Serialization.MessagePack

Target frameworks: netstandard2.0, net8.0, net9.0, net10.0

Usage

using System;
using System.Collections.Generic;
using CasCap.Common.Extensions;

var original = new Dictionary<string, string> { ["theme"] = "dark" };
byte[] bytes = original.ToMessagePack();
var restored = bytes.FromMessagePack<Dictionary<string, string>>();

Console.WriteLine(restored["theme"]); // dark

ToMessagePack<T>() returns a byte[]. FromMessagePack<T>() accepts either a byte[] or a ReadOnlyMemory<byte> slice, avoiding a preliminary array copy when the caller already has a buffer. Serialization and deserialization errors are logged and rethrown.

The helpers use the underlying serializer's default options. Custom object types must satisfy MessagePack-CSharp's serialization contract. For explicit resolver, security or serializer-option control, use MessagePackSerializer directly; these helpers do not expose per-call options.

Treat serialized data as a contract between producer and consumer; do not assume arbitrary .NET types can be serialized without configuration or that these helpers validate untrusted payloads.

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 is compatible.  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 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 (4)

Showing the top 4 NuGet packages that depend on CasCap.Common.Serialization.MessagePack:

Package Downloads
CasCap.Common.Caching

Helper library for local and remote object caching.

CasCap.Apis.Azure.EventHub

Helper library for Azure Event Hub.

CasCap.Api.Azure.EventHub

Helper library for Azure Event Hub publish/subscribe streaming with MessagePack serialization.

CasCap.Api.Knx

.NET client library for KNX building automation — connects via KNXnet/IP tunnelling or routing, monitors group-address telegrams, and fans events out to configurable sinks.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.16.0 0 10/21/2026
4.15.0 184 10/6/2026
4.14.4 208 10/4/2026
4.14.3 180 9/28/2026
4.14.2 253 9/25/2026
4.14.1 243 9/23/2026
4.14.0 495 9/19/2026
4.13.0 151 9/15/2026
4.12.8 298 9/10/2026
4.12.7 187 9/4/2026
4.12.6 190 9/1/2026
4.12.5 241 8/20/2026
4.12.4 312 8/18/2026
4.12.3 370 7/15/2026
4.12.2 366 6/26/2026
4.12.1 334 6/14/2026
4.12.0 336 6/12/2026
4.11.9 343 6/10/2026
4.11.8 334 5/27/2026
4.11.7 187 5/27/2026
Loading failed