diff --git a/src/Utf8StringInterpolation/ArrayBufferWriter.cs b/src/Utf8StringInterpolation/ArrayBufferWriter.cs index 0dd1db3..306f5c7 100644 --- a/src/Utf8StringInterpolation/ArrayBufferWriter.cs +++ b/src/Utf8StringInterpolation/ArrayBufferWriter.cs @@ -1,10 +1,4 @@ -#if NET6_0_OR_GREATER || NETSTANDARD2_1 - -using System.Runtime.CompilerServices; -[assembly: TypeForwardedTo(typeof(System.Buffers.ArrayBufferWriter<>))] - -#else - +#if !NET6_0_OR_GREATER && !NETSTANDARD2_1_OR_GREATER using System; using System.Diagnostics; @@ -252,5 +246,4 @@ private static void ThrowOutOfMemoryException(uint capacity) } } } - -#endif \ No newline at end of file +#endif diff --git a/tests/Utf8StringInterpolation.Tests/Utf8StringInterpolation.Tests.csproj b/tests/Utf8StringInterpolation.Tests/Utf8StringInterpolation.Tests.csproj index 1324c5a..a885e77 100644 --- a/tests/Utf8StringInterpolation.Tests/Utf8StringInterpolation.Tests.csproj +++ b/tests/Utf8StringInterpolation.Tests/Utf8StringInterpolation.Tests.csproj @@ -1,10 +1,11 @@  - net48;net5.0;net6.0;net8.0 + net48 + $(TargetFrameworks);net5.0;net6.0;net8.0 enable enable - 11.0 + 12.0 false true