Mohsen Afshin
Mohsen Afshin

Reputation: 13436

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

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"

Upvotes: 2

Views: 1845

Answers (1)

natemcmaster
natemcmaster

Reputation: 26823

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

Upvotes: 1

Related Questions