I'm trying to mark a custom exception class with [Serializable] attribute in a simple class library that is targeted both dnx451 and dnxcore50 but unfortunately I'm unable to find out in which dependency SerializableAttribute exists.
Would you please tell me how can I find dnxcore50 dependencies?
It is a little confusing since SerializableAttribute is in the .NET CoreCLR repo. This is the source used for mscorlib. But all the source isn't included in every variation. Apparently it was decided to exclude binary serialization from dnxcore50 (see issues corefx #1333 and #1347 and coreclr #1203.
Consider using the Newtonsoft.Json
package for serialization.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With