Skip to content

Hyperion v0.10.0

Compare
Choose a tag to compare
@Aaronontheweb Aaronontheweb released this 13 Apr 20:20
7b6f992

0.10.0 April 13 2021

Cross platform serialization

You can now address any cross platform package serialization differences by providing a list of package name transformation lambda function into the SerializerOptions constructor. The package name will be passed into the lambda function before it is deserialized, and the result of the string transformation is used for deserialization instead of the original package name.

This short example shows how to address the change from System.Drawing in .NET Framework to System.Drawing.Primitives in .NET Core:

Serializer serializer;
#if NETFX
serializer = new Serializer(new SerializerOptions(
    packageNameOverrides: new List<Func<string, string>> {
        str => str.Contains("System.Drawing.Primitives") ? str.Replace(".Primitives", "") : str
    }));
#elif NETCOREAPP
serializer = new Serializer();
#endif

Note that only one package name transformation is allowed, any transform lambda function after the first applied transformation is ignored.

Changes:

  • 7b6f992 Merge pull request #211 from akkadotnet/dev
  • e620a15 Merge pull request #210 from Arkatufus/Update_RELEASE_NOTES.md_for_1.10.0_release
  • 8ec06db Merge branch 'Update_RELEASE_NOTES.md_for_1.10.0_release' of github.com:Arkatufus/Hyperion into Update_RELEASE_NOTES.md_for_1.10.0_release
  • 173dba8 Fix markdown title problem with Fake version number helper
  • 4629324 Merge branch 'dev' into Update_RELEASE_NOTES.md_for_1.10.0_release
  • 32a8b0b Update RELEASE_NOTES.md
  • 37209fe Bump Microsoft.NET.Test.Sdk from 16.9.1 to 16.9.4 (#209)
  • 477b5f3 Fix cross framework incompatibility for System.Drawing.Color (#208) [ #206 ]
  • bd3a432 fix release Pipeline

This list of changes was auto generated.