Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NET FX and NET core uses different serializer for classes implementing the ISerializable interface #309

Open
Arkatufus opened this issue Mar 31, 2022 · 0 comments
Labels

Comments

@Arkatufus
Copy link
Contributor

Arkatufus commented Mar 31, 2022

Version Information
Version of Akka.NET? All
Which Akka.NET Modules? Akka.Serialization.Hyperion

Describe the bug
NET Framework build uses Microsoft System.Runtime.Serialization to serialize classes inheriting the ISerializable interface but uses Hyperion POCO object serializer in NET Core, making cross platform serialization impossible.

This is caused by a byte rot in the multi platform compiler directive that hasn't been updated since System.Runtime.Serialization was supported in netstandard2.0, need to synchronize .NET FX and .NET Core code.

To Reproduce
Steps to reproduce the behavior:
Reproduction repo: https://github.com/t-l-k/BrokenAkkaSerialization

Expected behavior
.NET FX and Core should use the same serializer for classes inheriting the ISerializable interface

Actual behavior
It doesn't

@Arkatufus Arkatufus changed the title NET FX and NET core uses different serializer for SerializableAttribute tagged classes NET FX and NET core uses different serializer for classes implementing the ISerializable interface Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant