BinaryFormatter in netstandard 1.5

北战南征 提交于 2019-12-04 09:48:48
  • The System.Runtime.Serialization.Formatters package was added after RC2, it should be included in the 1.0 release tomorrow. In the meantime, you can use a version from MyGet.
  • The 1.0 version of System.Runtime.Serialization.Formatters will not contain BinaryFormatter. It mostly contains serialization attributes and interfaces, and types used by them. The full API of that package is here.
  • Even then, System.Runtime.Serialization.Formatters is not referenced by NETStandard.Library. If you want to use it, you will need to explicitly add it to your project.json.
  • BinaryFormatter will be available in a future version of .Net Core.

You cannot find BinaryFormatter in RC2,

http://packagesearch.azurewebsites.net/

About whether it would be part of .NET Core, you can refer to this pull request,

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

I guess it would be part of .NET Core 1.0 RTM, or 1.1 release.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!