The "No executable found matching command dotnet-ef" error

At the time of writing, there's a nasty issue affecting most .NET Core-based Visual Studio projects that can prevent the dotnet ef command from working properly. More specifically, you can be prompted by the following error message when trying to execute that command:

No executable found matching command "dotnet-ef"

If you experience this issue, try to check the following:

  • Double-check that you properly added the Microsoft.EntityFrameworkCore.Tools and the Microsoft.EntityFrameworkCore.Tools.DotNet package libraries (as explained earlier), as they are required for the command to work
  • Ensure that you are issuing the dotnet ef command in the project's root folder--the same one that ...

Get ASP.NET Core 2 and Angular 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.