简体   繁体   English

.NET Framework 4.6.2和.NET Standard 2.0不兼容

[英].NET Framework 4.6.2 and .NET Standard 2.0 incompatibility

A project targets .NET Framework 4.6.2 . 一个项目面向.NET Framework 4.6.2

A project uses NuGet package Entity Framework Core that references .NET Standard 2.0 (it appeared in packages folder) 一个项目使用引用.NET Standard 2.0的 NuGet包Entity Framework Core(它出现在packages文件夹中)

As far as I know, .NET 4.6.2 and .NET Standard 2.0 are incompatible. 据我所知, .NET 4.6.2.NET Standard 2.0是不兼容的。 Could it cause any issues? 它会引起任何问题吗?

As of the latest tooling updates in VS 2017 15.3 and .NET Core 2.0.0 SDK (released in August 2017), the minimum version of .NET Framework that supports .NET Standard 2.0 is 4.6.1. 截至VS 2017 15.3和.NET Core 2.0.0 SDK(2017年8月发布)中的最新工具更新,支持.NET Standard 2.0的.NET Framework的最低版本为4.6.1。

This is achieved by the tooling which adds compatibility DLLs to make sure that libraries load and work. 这是通过工具实现的,该工具添加了兼容性DLL以确保库加载和工作。 There are only a handful of APIs that aren't supported on 4.6.1-4.7, but Entity Framework Core is supposed to work on 4.6.1+. 4.6.1-4.7中只支持少数几个API,但实体框架核心应该适用于4.6.1+。

For .NET Framework 4.7.1+, the tooling no longer needs to inject those libraries. 对于.NET Framework 4.7.1+,工具不再需要注入这些库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM