微软刚刚宣布,Entity Framework Core 2.0 现在可以在 .NET Standard 2.0 上运行。
.NET Standard 2.0 兼容(如果这里用对了术语的话) .NET Framework 4.6.1。
然而,当我尝试添加最新的 NuGet 包时,出现错误提示我使用了错误的版本:
如果根据公告,我可以在.NET Framework 4.6.1中使用EF Core 2.0,能否有人解释一下,并且如果可能的话,给出一个示例。
.NET Standard 2.0 兼容(如果这里用对了术语的话) .NET Framework 4.6.1。
然而,当我尝试添加最新的 NuGet 包时,出现错误提示我使用了错误的版本:
Install-Package : Could not install package
'Microsoft.EntityFrameworkCore.SqlServer 2.0.0-preview2-25332'. You are
trying to install this package into a project that targets
'.NETFramework,Version=v4.6.1', but
the package does not contain any assembly references or content files
that are compatible with that framework.
如果根据公告,我可以在.NET Framework 4.6.1中使用EF Core 2.0,能否有人解释一下,并且如果可能的话,给出一个示例。