MessagePack.Annotations 4.0.0-preview.2

MessagePack.Annotations (migration shim)

In MessagePack v4 the attributes ([MessagePackObject], [Key], [IgnoreMember], [SerializationConstructor], [MessagePackFormatter]) and IMessagePackSerializationCallbackReceiver live in the MessagePack package itself. The source generator ships there too and runs on the assembly that declares the annotated types, so that assembly has to reference MessagePack anyway. An annotations-only reference is no longer a supported setup.

This package exists so that projects coming from v3 keep working:

  • The surviving types are type-forwarded to MessagePack, so using MessagePack; code compiles unchanged and the attribute types a pre-built v3 assembly references resolve (its formatter code, bound to v3's reader and writer, still cannot run on v4).
  • The package depends on MessagePack, so bumping its version brings the v4 runtime and source generator in.
  • Referencing the 4.x version keeps MessagePack.Annotations 3.x from sitting next to MessagePack 4.x, which would define every attribute twice (CS0433). NuGet does not do this on its own: MessagePack does not depend on this package (the dependency runs the other way), so a transitive 3.x reference from a v3-built library stays at 3.x until the consuming project adds an explicit PackageReference to MessagePack.Annotations 4.x.
  • The types v4 renamed or deleted ([Union], [MessagePackKnownFormatter], [MessagePackAssumedFormattable], [ExcludeFormatterFromSourceGeneratedResolver]) still exist here in their v3 shape, marked [Obsolete] with error: true. The compiler error text tells you the replacement.

Once your code compiles and no dependency built against v3 references MessagePack.Annotations any more, remove this package and reference MessagePack directly. Removing it earlier brings the transitive 3.x package back (CS0433, as above).

Showing the top 20 packages that depend on MessagePack.Annotations.

Packages Downloads
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
30
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
27
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
26
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
25
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
24
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
23
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
23
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
22
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
22
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
21
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
21
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
20
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
20

.NET Standard 2.0

Version Downloads Last updated
4.0.0-rc.1 0 11/11/2026
4.0.0-preview.2 4 11/05/2026
4.0.0-preview.1 5 10/26/2026
3.1.12 9 10/13/2026
3.1.11 7 10/06/2026
3.1.10 12 09/29/2026
3.1.9 7 09/21/2026
3.1.8 9 07/13/2026
3.1.7 18 06/27/2026
3.1.6 16 06/27/2026
3.1.5 15 06/27/2026
3.1.4 15 08/19/2025
3.1.3 19 02/15/2025
3.1.2 17 02/02/2025
3.1.1 19 01/11/2025
3.1.0 17 12/16/2024
3.0.308 20 12/16/2024
3.0.300 17 02/17/2025
3.0.238-rc.1 13 11/05/2024
3.0.233-rc.1 11 11/05/2024
3.0.214-rc.1 25 11/05/2024
3.0.208-rc-0001 19 11/06/2024
3.0.134-beta 16 08/06/2024
3.0.129-beta 18 08/07/2024
3.0.111-alpha 18 08/07/2024
3.0.54-alpha 17 06/29/2024
2.6.100-alpha 16 01/09/2024
2.6.95-alpha 24 01/09/2024
2.5.307 9 10/07/2026
2.5.305 9 09/30/2026
2.5.303 12 09/26/2026
2.5.302 17 06/26/2026
2.5.301 15 07/03/2026
2.5.205 14 06/26/2026
2.5.198 11 06/25/2026
2.5.192 16 06/26/2026
2.5.187 14 07/19/2026
2.5.172 13 06/26/2026
2.5.171 18 06/26/2026
2.5.168 18 06/08/2024
2.5.140 20 01/08/2024
2.5.129 16 01/08/2024
2.5.124 19 01/08/2024
2.5.108 22 01/09/2024
2.5.103 17 01/09/2024
2.5.94 18 01/08/2024
2.5.64-alpha 20 01/09/2024
2.4.59 16 01/08/2024
2.4.35 15 01/09/2024
2.4.23-alpha 15 01/09/2024
2.4.14-alpha 15 01/09/2024
2.3.112 18 01/08/2024
2.3.85 23 01/09/2024
2.3.75 20 01/08/2024
2.3.73-alpha 20 12/30/2023
2.3.58-alpha 12 01/09/2024
2.2.113 11 01/08/2024
2.2.85 17 01/09/2024
2.2.60 15 01/09/2024
2.2.44-rc 16 01/09/2024
2.2.36-alpha 17 01/09/2024
2.1.194 19 01/08/2024
2.1.165 16 01/08/2024
2.1.152 15 03/31/2022
2.1.143 21 01/08/2024
2.1.115 20 01/08/2024
2.1.90 22 01/08/2024
2.1.80 18 01/08/2024
2.0.335 15 01/09/2024
2.0.323 11 01/09/2024
2.0.299-rc 15 01/09/2024
2.0.270-rc 22 01/09/2024
2.0.231-rc 16 01/09/2024
2.0.221-beta 12 01/09/2024
2.0.204-beta 17 01/09/2024
2.0.171-beta 15 01/09/2024
2.0.123-beta 17 01/09/2024
2.0.119-beta 17 01/09/2024