Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SerializableAttribute in dnxcore50

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?

like image 810
mrtaikandi Avatar asked Jul 20 '15 09:07

mrtaikandi


1 Answers

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.

like image 177
jltrem Avatar answered Oct 08 '22 14:10

jltrem