From 9dac60df7358e2b4fa3108a00bf459b64d3cbaf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fa=E9=B8=BD?= <43724908+Akarinnnnn@users.noreply.github.com> Date: Mon, 24 Feb 2025 10:49:59 +0800 Subject: [PATCH] Replace encoding polyfill with NET5+ one. netstandard2.1 is a special TFM that .NET5+ doesn't mark themselves compitable, even if they mostly are. --- src/Markdig/Polyfills/EncodingExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Markdig/Polyfills/EncodingExtensions.cs b/src/Markdig/Polyfills/EncodingExtensions.cs index 14d3845a..17467a07 100644 --- a/src/Markdig/Polyfills/EncodingExtensions.cs +++ b/src/Markdig/Polyfills/EncodingExtensions.cs @@ -2,7 +2,7 @@ // This file is licensed under the BSD-Clause 2 license. // See the license.txt file in the project root for more information. -#if !NETSTANDARD2_1_OR_GREATER +#if !NETCOREAPP2_1_OR_GREATER && !NETSTANDARD2_1_OR_GREATER using System.Runtime.InteropServices;