Package restore fails when installing EntityFramework 6.1.3 in Visual Studio Community 2017

时间:2017-08-04 13:14:53

标签: nuget visual-studio-2017 nuget-package-restore

I'm trying to install the EntityFramework 6.1.3 (latest stable version) dependency in a .NETStandard 1.4 class library but I keep getting a Package restore failed error. I get the same error with previous versions of EntityFramework (I tried everything back to v6.1.0). I've tried restarting Visual Studio and restarting the VM I'm running it in to no avail.

What am I doing wrong?

1 个答案:

答案 0 :(得分:3)

您需要将实体框架核心与.net标准而非实体框架6

一起使用

https://www.nuget.org/packages/Microsoft.EntityFrameworkCore/