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).
218
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
197
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
194
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).
184
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).
178
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
177
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, .NET Core, Unity, Xamarin).
173
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).
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 Framework, .NET 6, Unity, Xamarin).
164
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
163

.NET Standard 2.0

Version Downloads Last updated
4.0.0-rc.1 3 11/12/2026
4.0.0-preview.2 6 11/1/2026
4.0.0-preview.1 6 10/22/2026
3.1.12 9 10/14/2026
3.1.11 10 10/8/2026
3.1.10 11 9/26/2026
3.1.9 14 9/20/2026
3.1.8 24 7/9/2026
3.1.7 26 6/13/2026
3.1.6 31 5/22/2026
3.1.5 33 5/21/2026
3.1.4 104 6/17/2025
3.1.3 120 2/7/2025
3.1.2 120 1/28/2025
3.1.1 133 12/27/2024
3.1.0 129 12/23/2024
3.0.308 139 12/12/2024
3.0.300 129 12/12/2024
3.0.238-rc.1 123 10/23/2024
3.0.233-rc.1 128 10/23/2024
3.0.214-rc.1 131 10/22/2024
3.0.208-rc-0001 132 10/17/2024
3.0.134-beta 151 7/30/2024
3.0.129-beta 141 7/27/2024
3.0.111-alpha 155 7/10/2024
3.0.54-alpha 130 6/3/2024
2.6.100-alpha 161 7/27/2023
2.6.95-alpha 156 7/27/2023
2.5.307 12 10/8/2026
2.5.305 15 9/26/2026
2.5.303 14 9/20/2026
2.5.302 27 6/9/2026
2.5.301 23 6/13/2026
2.5.205 31 5/22/2026
2.5.198 100 4/14/2025
2.5.192 123 11/13/2024
2.5.187 131 10/21/2024
2.5.172 149 8/3/2024
2.5.171 144 7/12/2024
2.5.168 154 6/7/2024
2.5.140 139 11/30/2023
2.5.129 158 10/2/2023
2.5.124 171 7/27/2023
2.5.108 157 5/10/2023
2.5.103 168 5/10/2023
2.5.94 184 4/15/2023
2.5.64-alpha 182 12/8/2022
2.4.59 172 11/25/2022
2.4.35 194 7/2/2022
2.4.23-alpha 158 7/2/2022
2.4.14-alpha 185 7/2/2022
2.3.112 184 7/2/2022
2.3.85 191 7/2/2022
2.3.75 178 7/2/2022
2.3.73-alpha 195 7/2/2022
2.3.58-alpha 170 7/2/2022
2.2.113 175 7/2/2022
2.2.85 176 7/2/2022
2.2.60 199 7/2/2022
2.2.44-rc 178 7/2/2022
2.2.36-alpha 175 7/2/2022
2.1.194 161 7/2/2022
2.1.165 168 7/2/2022
2.1.152 182 7/2/2022
2.1.143 188 7/2/2022
2.1.115 175 7/2/2022
2.1.90 187 7/2/2022
2.1.80 187 7/2/2022
2.0.335 178 7/2/2022
2.0.323 189 7/2/2022
2.0.299-rc 177 7/2/2022
2.0.270-rc 172 7/2/2022
2.0.231-rc 167 7/2/2022
2.0.221-beta 173 7/2/2022
2.0.204-beta 167 7/2/2022
2.0.171-beta 188 7/2/2022
2.0.123-beta 190 7/2/2022
2.0.119-beta 169 7/2/2022