Search code examples
c#asp.net-mvcentity-frameworkasp.net-mvc-5sql-server-ce

Error NU1002 when installng EntityFramework.SqlServerCompact to ASP.NET 5 project


While installing "EntityFramework.SqlServerCompact" through NuGet to ASP.NET 5 project, got error:

Error NU1002 The dependency EntityFramework 6.1.3 in project does not support framework DNXCore,Version=v5.0

Other EntityFramework packages are of correct versions:

"EntityFramework.Commands": "7.0.0-rc1-final",
"EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final",

In Solution Explorer, error highlited in "DNX Core 5.0" branch of "References" tree.

Is there any way to solve this issue, or I should forget of using SQL Server Compact in ASP.NET 5 project?


Solution

  • The EntityFramework.MicrosoftSqlServer provider only runs on the full .NET Framework, not on .NET Core