SerializableAttribute at dnxcore50

I am trying to note a special exception class with the [Serializable] attribute in a simple class library that targets both dnx451 and dnxcore50, but unfortunately I cannot find out depending on whether the SerializableAttribute dependency exists.

Could you tell me how can I find dnxcore50 dependencies?

+6
source share
1 answer

This is a bit confusing since SerializableAttribute is in the .NET CoreCLR registry . This is the source used for mscorlib. But all sources are not included in every variation. Apparently, it was decided to exclude binary serialization from dnxcore50 (see Problems corefx # 1333 and # 1347 and coreclr # 1203 .

Consider using the Newtonsoft.Json package for serialization.

+5
source

All Articles