diff --git a/GameJolt.NET/GameJolt.NET.csproj b/GameJolt.NET/GameJolt.NET.csproj index 3fdf1d9..acd45a7 100644 --- a/GameJolt.NET/GameJolt.NET.csproj +++ b/GameJolt.NET/GameJolt.NET.csproj @@ -8,6 +8,9 @@ net5.0;net6.0;net7.0;net8.0;netstandard2.0;netstandard2.1 Debug;Release;Unity;Unity 2023;Force System Json;Disable GameJolt AnyCPU + true + true + true diff --git a/GameJolt.NET/Serialization/System/SystemJsonSerializer.cs b/GameJolt.NET/Serialization/System/SystemJsonSerializer.cs index 4fa8674..f55410d 100644 --- a/GameJolt.NET/Serialization/System/SystemJsonSerializer.cs +++ b/GameJolt.NET/Serialization/System/SystemJsonSerializer.cs @@ -7,6 +7,11 @@ namespace Hertzole.GameJolt { + [UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", + Justification = "Options are provided at runtime which includes (de)serializers for all types..")] + [UnconditionalSuppressMessage("Trimming", + "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", + Justification = "Options are provided at runtime which includes (de)serializers for all types.")] internal sealed partial class SystemJsonSerializer : IGameJoltSerializer { private static readonly JsonSerializerOptions options = CreateOptions();