Skip to content

0.0.0-PR

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 30 Jan 19:28
dcf54e0
Add support for netstandard2.0 (#1)

Functional changes:
 * `RecordCollectionNewtonsoftJsonConverterFactory`:
   - can opt-out of caching converters
   - json-writing throws `NotSupportedException` rather than `NotImplementedException`
   - **internal**: caches based on type, not just type name
 * `RecordCollection`
   - index setter's Obsolete attribute now throws a compiler error.
   - `IStructuralEquatable.Equals()` when comparer is `<T>` BUT `other` is not `IEnumerable<T>`, fall back to the `GetHashCode` comparison. This is for cases where the comparer might implement T-comparer but is used here for a different comparison.

Target version changes:
 * Core package and Newtonsoft package gain support for .NET Standard 2.0, adding support for .NET Framework.
 * Changed Newtonsoft package to target 2.0 and 8.0 for better optimizations of the Newtonsoft dependency.
 * Unfortunately `HashCode` is not native in .NET Standard 2.0 so the core package gains a dependency on [Microsoft.Bcl.HashCode](https://www.nuget.org/packages/Microsoft.Bcl.HashCode).

Package metadata:
 * Includes Description, Copyright, git metadata (latter via SourceLink)

CI/CD changes:
 * environment target switches between `pr` and `prod` depending on if we're in a PR pipeline. Only `prod` has NuGet creds.
 * setting `VERSION` environment var in PR pipeline to `0.0.0-PR`