From a04b636a11a7baf4706451ab77aa5f459bba61df Mon Sep 17 00:00:00 2001 From: JKorf Date: Tue, 13 May 2025 20:03:34 +0200 Subject: [PATCH] Disable AOT warnings in testing code --- .../Testing/Comparers/SystemTextJsonComparer.cs | 6 ++++-- CryptoExchange.Net/Testing/TestHelpers.cs | 5 +++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CryptoExchange.Net/Testing/Comparers/SystemTextJsonComparer.cs b/CryptoExchange.Net/Testing/Comparers/SystemTextJsonComparer.cs index 47f3239..3bf0ece 100644 --- a/CryptoExchange.Net/Testing/Comparers/SystemTextJsonComparer.cs +++ b/CryptoExchange.Net/Testing/Comparers/SystemTextJsonComparer.cs @@ -10,8 +10,10 @@ using System.Text.Json.Serialization; using CryptoExchange.Net.Converters; using CryptoExchange.Net.Converters.SystemTextJson; -#pragma warning disable IL2026 // Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code -#pragma warning disable IL3050 // Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling. +#pragma warning disable IL2026 +#pragma warning disable IL2070 +#pragma warning disable IL2075 +#pragma warning disable IL3050 namespace CryptoExchange.Net.Testing.Comparers { diff --git a/CryptoExchange.Net/Testing/TestHelpers.cs b/CryptoExchange.Net/Testing/TestHelpers.cs index 3c5720f..3764683 100644 --- a/CryptoExchange.Net/Testing/TestHelpers.cs +++ b/CryptoExchange.Net/Testing/TestHelpers.cs @@ -15,6 +15,11 @@ using CryptoExchange.Net.Objects; using CryptoExchange.Net.Objects.Sockets; using CryptoExchange.Net.Testing.Implementations; +#pragma warning disable IL2026 +#pragma warning disable IL2070 +#pragma warning disable IL2075 +#pragma warning disable IL3050 + namespace CryptoExchange.Net.Testing { ///