LsMsgPack.Core
2026.11.9.2
See the version list below for details.
dotnet add package LsMsgPack.Core --version 2026.11.9.2
NuGet\Install-Package LsMsgPack.Core -Version 2026.11.9.2
<PackageReference Include="LsMsgPack.Core" Version="2026.11.9.2" />
<PackageVersion Include="LsMsgPack.Core" Version="2026.11.9.2" />
<PackageReference Include="LsMsgPack.Core" />
paket add LsMsgPack.Core --version 2026.11.9.2
#r "nuget: LsMsgPack.Core, 2026.11.9.2"
#:package LsMsgPack.Core@2026.11.9.2
#addin nuget:?package=LsMsgPack.Core&version=2026.11.9.2
#tool nuget:?package=LsMsgPack.Core&version=2026.11.9.2
LsMsgPack.Core
The parts shared by the LtMsgPack and LsMsgPack MsgPack serializers. You don't need to add it yourself: both serializers depend on it.
Its types are in the LsMsgPack.* namespaces, so they work the same with either serializer:
MsgPackOptions: the format settings (UseInexedSchema,SchemaVersion,ObjectLayout,AddTypeIdOptions,PropertyOrder,TypeGuard...), the base class ofLtMsgPackOptionsandMsgPackSettings.- Type resolvers (
IMsgPackTypeResolver,XmlRootAttributeTypeResolver) and property id resolvers (IMsgPackPropertyIdResolver,AttributePropertyNameResolver): choose the ids written for types and properties. - Filters (
FilterDefaultValues,FilterNullValues,FilterIgnoredAttribute,FilterShouldSerialize...): decide which properties are written (FilterShouldSerializecalls theShouldSerialize{Name}()methods as Json.NET does).FilterIgnoredAttribute.LikeNewtonsoft,LikeSystemTextJsonand the other presets leave out the same properties as those serializers (property names and filters). - Type guards (
IMsgPackTypeGuard,AllowedTypesGuard): limit the types the data may create. SchemaStore: keeps indexed schemas between calls, so messages can refer to a schema instead of carrying it.MsgPackMediaTypes: the MsgPack media types (application/msgpack,application/x-msgpack,application/x-lsmsgpack).- Analyzers, for the projects that reference either serializer: initialized properties without a matching
[DefaultValue](a left-out value would be read back as the initial value, with code fixes), properties or reads declared asobjectwhere the data picks the type, and public fields that are not serialized (analyzers).
Documentation
- Wire formats, the indexed schema and type resolvers
- Security: type guards
- Analyzers: the rules, which classes they check, and how to configure them
- Source and issues: github.com/mlsomers/LsMsgPack
| 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 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. |
-
.NETStandard 2.0
- System.Memory (>= 4.6.3)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.2)
-
.NETStandard 2.1
- System.Memory (>= 4.6.3)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.2)
-
net8.0
- No dependencies.
NuGet packages (4)
Showing the top 4 NuGet packages that depend on LsMsgPack.Core:
| Package | Downloads |
|---|---|
|
LtMsgPack
Fast MessagePack (MsgPack) serializer for .NET classes, used like the JSON serializers: 3-5x as fast as System.Text.Json with 35-47% smaller payloads. Polymorphism with type ids, an optional indexed schema, data of older and newer class versions still loads, streaming, presets for MessagePack-CSharp and Nerdbank.MessagePack, and a source generator for NativeAOT and trimming. |
|
|
LsMsgPack
Fast MessagePack (MsgPack) serializer for .NET classes, used like the JSON serializers: 3-5x as fast as System.Text.Json with 35-47% smaller payloads. Polymorphism with type ids, an optional indexed schema, data of older and newer class versions still loads, streaming, presets for MessagePack-CSharp and Nerdbank.MessagePack, and a source generator for NativeAOT and trimming. |
|
|
LsMsgPackDebug
MessagePack (MsgPack) serializer for .NET classes that also gives you the tree of MsgPack items of any payload, to inspect MsgPack data even without the classes. Writes and reads the same data as LsMsgPack, the much faster package to use when you only need to serialize. |
|
|
LsMsgPack.Lz4
LZ4 compression for LsMsgPack and LsMsgPackDebug (MsgPackOptions.Compression = Lz4Compression.Block): the format of MessagePack-CSharp's Lz4Block and Lz4BlockArray, so each reads what the other writes. Brings K4os.Compression.LZ4 along; the serializers themselves depend on no compression package. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.11.23.1 | 20 | 11/23/2026 |
| 2026.11.21.1 | 79 | 11/21/2026 |
| 2026.11.20.1 | 145 | 11/20/2026 |
| 2026.11.18.1 | 151 | 11/18/2026 |
| 2026.11.16.1 | 279 | 11/16/2026 |
| 2026.11.14.1 | 275 | 11/14/2026 |
| 2026.11.12.1 | 276 | 11/12/2026 |
| 2026.11.9.2 | 284 | 11/9/2026 |
| 2026.11.9.1 | 282 | 11/9/2026 |
| 2026.11.8.1 | 282 | 11/7/2026 |
| 2026.11.6.1 | 280 | 11/6/2026 |
| 2026.11.3.1 | 284 | 11/3/2026 |
| 2026.10.29.1 | 267 | 10/29/2026 |
| 2026.10.28.2 | 255 | 10/28/2026 |
| 2026.10.28.1 | 254 | 10/28/2026 |
| 2026.10.27.1 | 245 | 10/27/2026 |
| 2026.10.26.1 | 226 | 10/26/2026 |
| 2026.10.24.1 | 258 | 10/23/2026 |
| 2026.10.22.1 | 243 | 10/21/2026 |
| 2026.10.11.1 | 241 | 10/10/2026 |