LsMsgPack 2026.10.28.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package LsMsgPack --version 2026.10.28.2
                    
NuGet\Install-Package LsMsgPack -Version 2026.10.28.2
                    
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="LsMsgPack" Version="2026.10.28.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LsMsgPack" Version="2026.10.28.2" />
                    
Directory.Packages.props
<PackageReference Include="LsMsgPack" />
                    
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 LsMsgPack --version 2026.10.28.2
                    
#r "nuget: LsMsgPack, 2026.10.28.2"
                    
#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 LsMsgPack@2026.10.28.2
                    
#: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=LsMsgPack&version=2026.10.28.2
                    
Install as a Cake Addin
#tool nuget:?package=LsMsgPack&version=2026.10.28.2
                    
Install as a Cake Tool

LsMsgPack

MsgPack serializer for .NET classes, used like the xml and json serializers. It also gives you the tree of MsgPack items (maps, arrays, strings...) of any payload, so you can inspect MsgPack data in your app, even when you don't have the classes.

Only need to serialize? Use LtMsgPack: it writes and reads exactly the same data with the same settings, about 10x as fast, because it skips the item tree. LsMsgPack is about 2-4x slower than System.Text.Json.

  • Indexed schema (on by default): each message lists its types and property names once, and the body refers to them by index. Messages are smaller, and data written by older or newer versions of your classes still loads.
  • Polymorphism out of the box: a type id is written where a value's type differs from the declared type (a List<IShape> holding circles and squares), without extra attributes.
  • Targets .NET Standard 2.0 and 2.1: .NET Framework 4.6.2+, .NET, MAUI, Avalonia...

Usage

using LsMsgPack;

byte[] data = MsgPackSerializer.Serialize(order);
Order copy = MsgPackSerializer.Deserialize<Order>(data);

Settings are passed as MsgPackSettings (MsgPackSerializer.Serialize(order, settings)), there are also overloads for Streams.

Looking inside

// The items of the payload: with the indexed schema, the schema followed by the body
MpRoot items = MsgPackItem.UnpackMultiple(data);

// A single item (an MpMap, MpArray, MpString, MpInt...)
MsgPackItem item = MsgPackItem.Unpack(data);

Documentation

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 was computed.  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. 
.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 is compatible. 
.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 (5)

Showing the top 5 NuGet packages that depend on LsMsgPack:

Package Downloads
LsMsgPack.AspNetCore

MessagePack (MsgPack) input and output formatters for ASP.NET Core MVC / Web API controllers, and results and bodies for minimal APIs, on the fast LsMsgPack serializer (application/msgpack, application/x-msgpack and application/x-lsmsgpack).

LsMsgPack.AspNet.Mvc

MessagePack (MsgPack) model binding and action result for ASP.NET MVC 5 controllers on .NET Framework, on the fast LsMsgPack serializer (application/msgpack, application/x-msgpack and application/x-lsmsgpack).

LsMsgPack.AspNet.WebApi

MessagePack (MsgPack) MediaTypeFormatter for ASP.NET Web API 2 and for HttpClient (ObjectContent / ReadAsAsync) on any platform, on the fast LsMsgPack serializer (application/msgpack, application/x-msgpack and application/x-lsmsgpack).

LsMsgPack.Data

Rows of an ADO.NET data reader as MsgPack without a class in between (result sets and table dumps as LsMsgPack streams, with an index for files), dumps read back as a DbDataReader (e.g. for SqlBulkCopy), and rows into objects.

LsMsgPack.SignalR

A MessagePack hub protocol for ASP.NET Core SignalR (server and .NET client) on the fast LsMsgPack serializer: "lsmsgpack" with LsMsgPack's values for its TypeScript client and .NET clients, or registered as "messagepack" with the bytes of Microsoft's MessagePack protocol for the existing clients.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.11.23.1 0 11/23/2026
2026.11.21.1 58 11/21/2026
2026.11.20.1 132 11/20/2026
2026.11.18.1 104 11/18/2026
2026.11.16.1 207 11/16/2026
2026.11.14.1 205 11/14/2026
2026.11.12.1 210 11/12/2026
2026.11.9.2 103 11/9/2026
2026.11.9.1 94 11/9/2026
2026.11.8.1 94 11/7/2026
2026.11.6.1 92 11/6/2026
2026.11.3.1 99 11/3/2026
2026.10.29.1 103 10/29/2026
2026.10.28.2 107 10/28/2026
2026.10.28.1 105 10/28/2026
2026.10.27.1 94 10/27/2026
2026.10.26.1 97 10/26/2026
2026.10.24.1 107 10/23/2026
2026.10.22.1 103 10/21/2026
2026.10.11.1 102 10/10/2026
Loading failed