ASP.NET Web API 2 cannot return stream when NET Standard 1.6 project is referenced

二次信任 提交于 2019-12-08 13:43:31

If you take a look at the .NET Standard compatibility chart, it specifically states:

  • .NET Framework (with .NET Core 1.x SDK)
  • .NET Framework (with .NET Core 2.0 SDK) - I have also read somewhere this also requires VS 2017 to work

These are dependencies that must be present on the development system that consumes the .NET Standard libraries in order for them to be compatible with .NET Framework.

Do note that .NET Framework 4.7.1 patches this behavior so it supports .NET Standard natively, without dependencies (at least it will when this bug is patched).

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