MessagePack.Annotations 4.0.0-rc.1

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). One exception: MessagePackObjectAttribute is sealed in v4, so an attribute a v3-built assembly derives from it fails to load (TypeLoadException when it is read); rebuild that assembly against 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, .NET Core, Unity, Xamarin).
221
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
198
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
196
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
193
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
186
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
184
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
181
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
179
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
178
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
176
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
174
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
173
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
173
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
170
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
168
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
165
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
164
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
164

.NET Standard 2.0

Version Downloads Last updated
4.0.0-rc.1 8 11/12/2026
4.0.0-preview.2 11 11/1/2026
4.0.0-preview.1 8 10/22/2026
3.1.12 11 10/14/2026
3.1.11 12 10/8/2026
3.1.10 14 9/26/2026
3.1.9 17 9/20/2026
3.1.8 25 7/9/2026
3.1.7 27 6/13/2026
3.1.6 33 5/22/2026
3.1.5 35 5/21/2026
3.1.4 105 6/17/2025
3.1.3 121 2/7/2025
3.1.2 121 1/28/2025
3.1.1 134 12/27/2024
3.1.0 130 12/23/2024
3.0.308 141 12/12/2024
3.0.300 132 12/12/2024
3.0.238-rc.1 125 10/23/2024
3.0.233-rc.1 129 10/23/2024
3.0.214-rc.1 133 10/22/2024
3.0.208-rc-0001 134 10/17/2024
3.0.134-beta 153 7/30/2024
3.0.129-beta 143 7/27/2024
3.0.111-alpha 157 7/10/2024
3.0.54-alpha 132 6/3/2024
2.6.100-alpha 163 7/27/2023
2.6.95-alpha 159 7/27/2023
2.5.307 14 10/8/2026
2.5.305 18 9/26/2026
2.5.303 16 9/20/2026
2.5.302 29 6/9/2026
2.5.301 26 6/13/2026
2.5.205 34 5/22/2026
2.5.198 102 4/14/2025
2.5.192 125 11/13/2024
2.5.187 133 10/21/2024
2.5.172 151 8/3/2024
2.5.171 146 7/12/2024
2.5.168 156 6/7/2024
2.5.140 141 11/30/2023
2.5.129 160 10/2/2023
2.5.124 173 7/27/2023
2.5.108 159 5/10/2023
2.5.103 170 5/10/2023
2.5.94 186 4/15/2023
2.5.64-alpha 184 12/8/2022
2.4.59 174 11/25/2022
2.4.35 196 7/2/2022
2.4.23-alpha 160 7/2/2022
2.4.14-alpha 187 7/2/2022
2.3.112 186 7/2/2022
2.3.85 193 7/2/2022
2.3.75 180 7/2/2022
2.3.73-alpha 197 7/2/2022
2.3.58-alpha 172 7/2/2022
2.2.113 178 7/2/2022
2.2.85 178 7/2/2022
2.2.60 202 7/2/2022
2.2.44-rc 180 7/2/2022
2.2.36-alpha 176 7/2/2022
2.1.194 164 7/2/2022
2.1.165 171 7/2/2022
2.1.152 185 7/2/2022
2.1.143 191 7/2/2022
2.1.115 178 7/2/2022
2.1.90 189 7/2/2022
2.1.80 190 7/2/2022
2.0.335 181 7/2/2022
2.0.323 192 7/2/2022
2.0.299-rc 180 7/2/2022
2.0.270-rc 175 7/2/2022
2.0.231-rc 170 7/2/2022
2.0.221-beta 177 7/2/2022
2.0.204-beta 170 7/2/2022
2.0.171-beta 191 7/2/2022
2.0.123-beta 193 7/2/2022
2.0.119-beta 173 7/2/2022