MessagePack.Annotations 4.0.0-preview.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).
  • 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, remove this package and reference MessagePack directly.

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).
214
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
194
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
191
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
189
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
179
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
179
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
178
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).
171
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
170
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
170
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
167
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).
162
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
161
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
161
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
159

.NET Standard 2.0

Version Downloads Last updated
4.0.0-preview.2 0 10/30/2026
4.0.0-preview.1 3 10/22/2026
3.1.12 6 10/14/2026
3.1.11 6 10/8/2026
3.1.10 7 9/26/2026
3.1.9 6 9/20/2026
3.1.8 20 7/9/2026
3.1.7 21 6/13/2026
3.1.6 27 5/22/2026
3.1.5 29 5/21/2026
3.1.4 102 6/17/2025
3.1.3 118 2/7/2025
3.1.2 118 1/28/2025
3.1.1 130 12/27/2024
3.1.0 127 12/23/2024
3.0.308 136 12/12/2024
3.0.300 128 12/12/2024
3.0.238-rc.1 121 10/23/2024
3.0.233-rc.1 126 10/23/2024
3.0.214-rc.1 130 10/22/2024
3.0.208-rc-0001 130 10/17/2024
3.0.134-beta 150 7/30/2024
3.0.129-beta 140 7/27/2024
3.0.111-alpha 154 7/10/2024
3.0.54-alpha 129 6/3/2024
2.6.100-alpha 160 7/27/2023
2.6.95-alpha 153 7/27/2023
2.5.307 7 10/8/2026
2.5.305 9 9/26/2026
2.5.303 8 9/20/2026
2.5.302 25 6/9/2026
2.5.301 21 6/13/2026
2.5.205 27 5/22/2026
2.5.198 98 4/14/2025
2.5.192 122 11/13/2024
2.5.187 129 10/21/2024
2.5.172 148 8/3/2024
2.5.171 142 7/12/2024
2.5.168 153 6/7/2024
2.5.140 138 11/30/2023
2.5.129 157 10/2/2023
2.5.124 170 7/27/2023
2.5.108 155 5/10/2023
2.5.103 166 5/10/2023
2.5.94 182 4/15/2023
2.5.64-alpha 181 12/8/2022
2.4.59 171 11/25/2022
2.4.35 193 7/2/2022
2.4.23-alpha 156 7/2/2022
2.4.14-alpha 183 7/2/2022
2.3.112 183 7/2/2022
2.3.85 189 7/2/2022
2.3.75 176 7/2/2022
2.3.73-alpha 191 7/2/2022
2.3.58-alpha 168 7/2/2022
2.2.113 173 7/2/2022
2.2.85 175 7/2/2022
2.2.60 197 7/2/2022
2.2.44-rc 177 7/2/2022
2.2.36-alpha 173 7/2/2022
2.1.194 160 7/2/2022
2.1.165 167 7/2/2022
2.1.152 181 7/2/2022
2.1.143 185 7/2/2022
2.1.115 174 7/2/2022
2.1.90 186 7/2/2022
2.1.80 185 7/2/2022
2.0.335 176 7/2/2022
2.0.323 188 7/2/2022
2.0.299-rc 175 7/2/2022
2.0.270-rc 171 7/2/2022
2.0.231-rc 165 7/2/2022
2.0.221-beta 171 7/2/2022
2.0.204-beta 166 7/2/2022
2.0.171-beta 187 7/2/2022
2.0.123-beta 187 7/2/2022
2.0.119-beta 166 7/2/2022