From 14cb40321d40c3a76b0816a809e09f8e11592a5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Wed, 20 Nov 2024 15:23:21 -0800 Subject: [PATCH] Delete pragma suppression for warning disabled with UnconditionalSuppressMessage https://github.com/dotnet/runtime/pull/109963#discussion_r1850060556 --- .../System.Net.Quic/src/System/Net/Quic/Internal/MsQuicApi.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libraries/System.Net.Quic/src/System/Net/Quic/Internal/MsQuicApi.cs b/src/libraries/System.Net.Quic/src/System/Net/Quic/Internal/MsQuicApi.cs index a02723101d683..0358742914485 100644 --- a/src/libraries/System.Net.Quic/src/System/Net/Quic/Internal/MsQuicApi.cs +++ b/src/libraries/System.Net.Quic/src/System/Net/Quic/Internal/MsQuicApi.cs @@ -91,14 +91,12 @@ static MsQuicApi() if (OperatingSystem.IsWindows()) { -#pragma warning disable IL3000 // Avoid accessing Assembly file path when publishing as a single file // Windows ships msquic in the assembly directory next to System.Net.Quic, so load that. // For single-file deployments, the assembly location is an empty string so we fall back // to AppContext.BaseDirectory which is the directory containing the single-file executable. string path = typeof(MsQuicApi).Assembly.Location is string assemblyLocation && !string.IsNullOrEmpty(assemblyLocation) ? System.IO.Path.GetDirectoryName(assemblyLocation)! : AppContext.BaseDirectory; -#pragma warning restore IL3000 path = System.IO.Path.Combine(path, Interop.Libraries.MsQuic);