diff --git a/src/IKVM.ByteCode/Buffers/SequenceReader.Search.cs b/src/IKVM.ByteCode/Buffers/SequenceReader.Search.cs index d96da03..4396d82 100644 --- a/src/IKVM.ByteCode/Buffers/SequenceReader.Search.cs +++ b/src/IKVM.ByteCode/Buffers/SequenceReader.Search.cs @@ -1,4 +1,4 @@ -#if NETFRAMEWORK +#if NETFRAMEWORK || NETSTANDARD // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. diff --git a/src/IKVM.ByteCode/Buffers/SequenceReader.cs b/src/IKVM.ByteCode/Buffers/SequenceReader.cs index 4eed773..8723a71 100644 --- a/src/IKVM.ByteCode/Buffers/SequenceReader.cs +++ b/src/IKVM.ByteCode/Buffers/SequenceReader.cs @@ -1,4 +1,4 @@ -#if NETFRAMEWORK +#if NETFRAMEWORK || NETSTANDARD // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. diff --git a/src/IKVM.ByteCode/Buffers/SequenceReaderExtensions.cs b/src/IKVM.ByteCode/Buffers/SequenceReaderExtensions.cs index 360c223..8219042 100644 --- a/src/IKVM.ByteCode/Buffers/SequenceReaderExtensions.cs +++ b/src/IKVM.ByteCode/Buffers/SequenceReaderExtensions.cs @@ -75,7 +75,7 @@ public static bool TryRead(ref this SequenceReader reader, out sbyte value return false; } -#if NETFRAMEWORK +#if NETFRAMEWORK || NETSTANDARD /// /// Reads an as big endian. @@ -120,7 +120,7 @@ private static bool TryReadReverseEndianness(ref SequenceReader reader, ou return false; } -#if NETFRAMEWORK +#if NETFRAMEWORK || NETSTANDARD /// /// Reads an as big endian. @@ -160,7 +160,7 @@ static bool TryReadReverseEndianness(ref SequenceReader reader, out int va return false; } -#if NETFRAMEWORK +#if NETFRAMEWORK || NETSTANDARD /// /// Reads an as big endian. diff --git a/src/IKVM.ByteCode/IKVM.ByteCode.csproj b/src/IKVM.ByteCode/IKVM.ByteCode.csproj index f050bb2..bdd1269 100644 --- a/src/IKVM.ByteCode/IKVM.ByteCode.csproj +++ b/src/IKVM.ByteCode/IKVM.ByteCode.csproj @@ -1,7 +1,7 @@  - net472;net6.0;net7.0;net8.0 + net472;net6.0;net7.0;net8.0;netstandard2.0 enable true LICENSE @@ -18,7 +18,7 @@ - + diff --git a/src/IKVM.ByteCode/OpCodeExtensions.cs b/src/IKVM.ByteCode/OpCodeExtensions.cs index 05f8cb8..ff6c6a0 100644 --- a/src/IKVM.ByteCode/OpCodeExtensions.cs +++ b/src/IKVM.ByteCode/OpCodeExtensions.cs @@ -13,7 +13,7 @@ public static class OpCodeExtensions /// public static bool IsValid(this OpCode opcode) { -#if NETFRAMEWORK +#if NETFRAMEWORK || NETSTANDARD return Enum.IsDefined(typeof(OpCode), opcode); #else return Enum.IsDefined(opcode); diff --git a/src/IKVM.ByteCode/Text/EncodingExtensions.cs b/src/IKVM.ByteCode/Text/EncodingExtensions.cs index 1c925c1..e5e1a46 100644 --- a/src/IKVM.ByteCode/Text/EncodingExtensions.cs +++ b/src/IKVM.ByteCode/Text/EncodingExtensions.cs @@ -6,7 +6,7 @@ namespace IKVM.ByteCode.Text static class EncodingExtensions { -#if NETFRAMEWORK +#if NETFRAMEWORK || NETSTANDARD public static unsafe string GetString(this System.Text.Encoding self, ReadOnlySpan bytes) { diff --git a/src/IKVM.ByteCode/Text/MUTF8Encoding.cs b/src/IKVM.ByteCode/Text/MUTF8Encoding.cs index a20acdb..66c153d 100644 --- a/src/IKVM.ByteCode/Text/MUTF8Encoding.cs +++ b/src/IKVM.ByteCode/Text/MUTF8Encoding.cs @@ -42,7 +42,7 @@ public override int GetByteCount(char[] chars, int index, int count) return GetByteCount(chars.AsSpan(index, count)); } -#if NETFRAMEWORK +#if NETFRAMEWORK || NETSTANDARD public unsafe int GetByteCount(ReadOnlySpan chars) { @@ -113,7 +113,7 @@ public override int GetBytes(char[] chars, int charIndex, int charCount, byte[] return GetBytes(chars.AsSpan(charIndex, charCount), bytes.AsSpan(byteIndex)); } -#if NETFRAMEWORK +#if NETFRAMEWORK || NETSTANDARD public unsafe int GetBytes(ReadOnlySpan chars, Span bytes) { @@ -173,7 +173,7 @@ public override unsafe int GetBytes(char* chars, int charCount, byte* bytes, int return j; } -#if NETFRAMEWORK +#if NETFRAMEWORK || NETSTANDARD public unsafe int GetCharCount(ReadOnlySpan bytes) { @@ -223,7 +223,7 @@ public unsafe override int GetChars(byte[] bytes, int byteIndex, int byteCount, return GetChars(bytes.AsSpan(byteIndex, byteCount), chars.AsSpan(charIndex)); } -#if NETFRAMEWORK +#if NETFRAMEWORK || NETSTANDARD /// public unsafe int GetChars(ReadOnlySpan bytes, Span chars)