akka.net and system.runtime both contain system.serializeattribute

Created on 23 Jun 2018  路  11Comments  路  Source: akkadotnet/akka.net

akka.net and system.runtime both contain system.serializeattribute

version:
.net core 2.0
akka 1.3.8

here is the screen shot:
http://hiwjcn.qiniudn.com/TIM%E6%88%AA%E5%9B%BE20180623190332.png
if can't see the pic,direct to http://hiwjcn.qiniudn.com/TIM%E6%88%AA%E5%9B%BE20180623190332.png

akka-actor

All 11 comments

@hiwjcn yes, these are polyfills from the pre-.NET Standard 2.0 days. In order to target .NET Standard 1.6 we had to add them back since the SerializableAttribute wasn't part of the .NET Standard library.

They reversed that decision in .NET Standard 2.0.

We're in the process of moving Akka.NET onto .NET Standard 2.0 as part of our v1.4.0 release and we'll go through and remove these once that's finished. https://github.com/akkadotnet/akka.net/pull/3452

In the meantime, this is stopping you from writing unit tests that utilize the Serializable attribute?

cc @Danthar you're still working on this, right?

@Aaronontheweb thanks for ur patient help

@Aaronontheweb Yup

Is there any temporary solution to this? Shall I just use DataContract and place DataMember on all fields?

Other than recompiling Akka.NET in your own fork without those polyfills, no - or don't use the Serializable attribute like you suggested. There are some other work-arounds suggested here: https://github.com/akkadotnet/akka.net/issues/3161

We'll have this fixed in the v1.4 release but there's nothing we can do between now and then given that this requires a platform change (i.e. we have to move onto .NET Standard 2.0 to not need the polyfills anymore.)

Much appreciated @Aaronontheweb. Looking forward to 1.4 / Standard 2.0!

@Aaronontheweb haha can't wait for the version 1.4,can i have the release scheduler?

@Aaronontheweb when can we expect the release of v1.4?

Has anyone managed to modify the Akka.NET sources to remove the SerializableAttribute polyfill and compile Akka.NET (core and remote libraries) for netstandard 2.0? Also, is there an update on when Akka 1.4 will be released, with netstandard 2.0 officially supported?

Resolved. Pushing first beta of Akka.NET v1.4 now.

Was this page helpful?
0 / 5 - 0 ratings