BinaryFormatter in netstandard 1.5

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- ?

+4
2
  • System.Runtime.Serialization.Formatters RC2, 1.0 . MyGet.
  • 1.0 System.Runtime.Serialization.Formatters BinaryFormatter. , . API .
  • System.Runtime.Serialization.Formatters NETStandard.Library. , project.json.
  • BinaryFormatter .Net Core.
+5

BinaryFormatter RC2,

http://packagesearch.azurewebsites.net/

, .NET Core, pull,

https://github.com/dotnet/corefx/pull/8302/files

, RTM.NET Framework 1.0 1.1.

+2

All Articles