From 545724bfbf4e413a3af1771597290eac7b447907 Mon Sep 17 00:00:00 2001 From: Dan Moseley Date: Wed, 12 Apr 2023 17:01:26 -0600 Subject: [PATCH 1/2] obsolete attribs for binary formatting --- global.json | 2 +- .../Assets/Scripts/MessagePack/IFormatterResolver.cs | 1 + .../Assets/Scripts/MessagePack/Internal/TinyJsonReader.cs | 1 + .../Scripts/MessagePack/MessagePackSerializationException.cs | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/global.json b/global.json index 954a92e75..39a1241ef 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "6.0.300", + "version": "6.0.408", "rollForward": "patch", "allowPrerelease": false } diff --git a/src/MessagePack.UnityClient/Assets/Scripts/MessagePack/IFormatterResolver.cs b/src/MessagePack.UnityClient/Assets/Scripts/MessagePack/IFormatterResolver.cs index 51a8e14e4..fbf3cf9be 100644 --- a/src/MessagePack.UnityClient/Assets/Scripts/MessagePack/IFormatterResolver.cs +++ b/src/MessagePack.UnityClient/Assets/Scripts/MessagePack/IFormatterResolver.cs @@ -116,6 +116,7 @@ public FormatterNotRegisteredException(string message) { } + [Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")] protected FormatterNotRegisteredException(SerializationInfo info, StreamingContext context) : base(info, context) { diff --git a/src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/TinyJsonReader.cs b/src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/TinyJsonReader.cs index 02229621b..88c73de28 100644 --- a/src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/TinyJsonReader.cs +++ b/src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/TinyJsonReader.cs @@ -48,6 +48,7 @@ public TinyJsonException(string message) { } + [Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")] protected TinyJsonException(SerializationInfo info, StreamingContext context) : base(info, context) { diff --git a/src/MessagePack.UnityClient/Assets/Scripts/MessagePack/MessagePackSerializationException.cs b/src/MessagePack.UnityClient/Assets/Scripts/MessagePack/MessagePackSerializationException.cs index 85aa1ef7e..a849480a7 100644 --- a/src/MessagePack.UnityClient/Assets/Scripts/MessagePack/MessagePackSerializationException.cs +++ b/src/MessagePack.UnityClient/Assets/Scripts/MessagePack/MessagePackSerializationException.cs @@ -47,6 +47,7 @@ public MessagePackSerializationException(string message, Exception inner) /// /// Serialization info. /// Serialization context. + [Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")] protected MessagePackSerializationException( System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) From 2dce4432e6c497cd44213c247887a0f3df648079 Mon Sep 17 00:00:00 2001 From: Dan Moseley Date: Wed, 12 Apr 2023 17:02:59 -0600 Subject: [PATCH 2/2] revert json --- global.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global.json b/global.json index 39a1241ef..954a92e75 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "6.0.408", + "version": "6.0.300", "rollForward": "patch", "allowPrerelease": false }