SQL Compact Edition:无法找到Dependency EntityFramework.Relational

时间:2016-01-23 18:32:03

标签: asp.net entity-framework sql-server-ce

我正在尝试使用Visual Studio在2015年的ASP.NET 5应用程序(MVC 6)中安装SQL Server Compact Edition的实体框架。

我在Package Manager Console中运行了以下命令来安装SQL Server Compact 3.5

Install-Package EntityFramework.SqlServerCompact35 –Pre

结果是成功的

Installing NuGet package EntityFramework.SqlServerCompact35.7.0.0-rc1-final.
Successfully installed 'EntityFramework.SqlServerCompact35 7.0.0-rc1-final' to Web

但是,恢复包失败

Restoring packages for Web\project.json
CACHE https://www.nuget.org/api/v2/FindPackagesById()?id='EntityFramework.Relational'
Unable to locate Dependency EntityFramework.Relational 7.0.0-rc1-16263
Writing lock file Web\project.lock.json
Restore complete, 6789ms elapsed
Errors in Web\project.json
Unable to locate Dependency EntityFramework.Relational 7.0.0-rc1-16263
NuGet Config files used:
C:\Users\Linux\AppData\Roaming\NuGet\nuget.config
Feeds used:
https://www.nuget.org/api/v2/
C:\Program Files (x86)\Microsoft Web Tools\DNU

该应用程序的目标是1.0.0-rc1-update1 DNX版本。

project.json中的依赖项是

"EntityFramework.SqlServerCompact35": "7.0.0-rc1-final",
"Microsoft.AspNet.Diagnostics": "1.0.0-rc1-final",
"Microsoft.AspNet.Mvc": "6.0.0-rc1-final",
"Microsoft.AspNet.Server.IIS": "1.0.0-beta7",
"Microsoft.AspNet.Server.WebListener": "1.0.0-rc1-final",
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final",
"Microsoft.Framework.DependencyInjection": "1.0.0-beta8"'

请问您可以提出什么问题?

1 个答案:

答案 0 :(得分:1)

SQL Server Compact提供程序需要.NET 4.5.1或更高版本,并且不能在.NET Core下运行