According to the .NET CoreFx API List and the associated version of the .NET Platform Standard , System.Runtime.Serialization.Formatters is added to the .NET Platform Standard since version 1.3, which is very cool, but when I try to create a class library. Net Core oriented to netstandard1.5 under.Net Core RC2, I can not use it.
The code is simple, just intending to declare a BinaryFormatter:
public class Problems {
private System.Runtime.Serialization.Formatters.Binary.BinaryFormatter _formatter;
}
Error:
Error CS0234 The type or name of the Serialization namespace does not exist in the System.Runtime namespace (are you missing the assembly link?)
Here is the .json project that I have not made changes:
{
"version": "1.0.0-*",
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027",
},
"frameworks": {
"netstandard1.5": {
"imports": "dnxcore50"
}
}
}
, , ? ? API- ?