Enable EF Core Migration in Full .NET Project (*.csproj)

.net-core ef-migrations entity-framework-core

Question

I have a full .NET Framework project (*.csproj) with EF Core data access.

How can I have migrations enabled for EF Core in Non-.NET-Core projects (ASP.NET MVC5)?

I get the following error:

dotnet : No executable found matching command "dotnet-ef"
1
2
7/31/2016 7:13:28 PM

Accepted Answer

The 1.0.0-preview2 and 1.0.0-preview1 releases of EF Core Tools don't work on csproj projects, only project.json. Use the Package Manager Console commands instead. See https://docs.efproject.net/en/latest/miscellaneous/cli/powershell.html

1
8/2/2016 4:19:20 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow