Add netstandard2.0 compatibility - #21
Open
rabbitism wants to merge 4 commits into
Open
Conversation
- Add netstandard2.0 to TargetFrameworks - Condition IsAotCompatible/IsTrimmable for net8.0+ - Add LangVersion latest - Condition System.Memory package for netstandard2.0 - Add IsExternalInit polyfill for netstandard2.0 - Add RequiresUnreferencedCodeAttribute polyfill for netstandard2.0 - Guard DateOnly/TimeOnly converters with #if NET8_0_OR_GREATER - Fix SerializeToStreamAsync: extract SerializeCoreAsync, guard 3-param override
- Add System.Index/Range polyfill for ^ and .. syntax - Add CallerArgumentExpression polyfill - Add NotNullAttribute polyfill - Add ThrowHelper to replace ArgumentNullException.ThrowIfNull - Add System.ValueTuple package for netstandard2.0 - Fix Array.Fill with for-loop on netstandard2.0
- Add EncodingPolyfill (GetUtf8String/GetUtf8Bytes for Span APIs) - Add PolyfillArrayBufferWriter (replaces ArrayBufferWriter<T>) - Add MemoryMarshalShim (replaces MemoryMarshal.CreateSpan) - Add StreamPolyfill (WriteAsync/ReadAsync Memory overloads) - Add KvpExtensions (Deconstruct for KeyValuePair) - Fix Enum.Parse<T> -> (T)Enum.Parse(typeof(T),...) - Fix Type.IsAssignableTo -> IsAssignableFrom - Fix HashCode.Combine -> manual hash - Fix ConcurrentDictionary.GetOrAdd 3-arg -> closure - Fix decimal.TryFormat -> ToString+GetBytes - Fix ReadOnlySpan.Contains -> IndexOf - Fix ReadOnlySequence.FirstSpan -> First.Span - Fix pattern-matching unassigned enumerable - Add System.Buffers package reference - Add CultureInfo using
EncodingPolyfill, MemoryMarshalShim, KvpExtensions, ThrowHelper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.