I Can't find [Serializable] in DNX Core 5.0 I try with 'using System'. Its working for DNX 4.5.1 but not for 5.0 What packages should I add to make this work?
[Serializable]
public class WorkItem
{
}
My Project json
{
"webroot": "wwwroot",
"version": "1.0.0-*",
"dependencies": {
"Microsoft.AspNet.Server.IIS": "1.0.0-beta7",
"Microsoft.AspNet.Server.WebListener": "1.0.0-beta7",
"_my.DataAccess.Common": "1.0.0-*",
"_my.DependencyInjection.Common": "1.0.0-*",
"System.Runtime.Serialization": "4.0.0.0"
},
"commands": {
"web": "Microsoft.AspNet.Hosting --config hosting.ini"
},
"frameworks": {
"dnx451": {
"frameworkAssemblies": {
"System.Runtime.Serialization": "4.0.0.0"
}
},
"dnxcore50": { }
},
"publishExclude": [
"node_modules",
"bower_components",
"**.xproj",
"**.user",
"**.vspscc"
],
"exclude": [
"wwwroot",
"node_modules",
"bower_components"
]
}
I got the same issue and tried DataContract attribute it worked for me.
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