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).
62
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
59
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
57
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
56
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
54
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
54
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
53
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
52
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
52
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
51
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
50
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
50
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
49
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
48

.NET Standard 2.0

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