AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

No executable found matching command "dotnet-ef"

Open StephenSZDai opened this issue 8 years ago • 2 comments

One more issue is found. I can run "dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design" in cmd prompt, but I received the following error when running "dotnet ef migrations add Initial"

No executable found matching command "dotnet-ef"


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

StephenSZDai avatar May 11 '18 09:05 StephenSZDai

There seem to be some packages and additions to get the dotnet-ef working. I found the solution on https://stackoverflow.com/questions/37276882/no-executable-found-matching-command-dotnet-ef Specifically for me the section titled - Specific to VS2017 15.3 or greater and ASP.NET CORE 2.0 or later... by Joe Healy

krittersg avatar May 11 '18 13:05 krittersg

@StephenSZDai The CLI tool just hasn't been registered with the .NET Core CLI. Here are the instructions to solve that problem: https://docs.microsoft.com/ef/core/miscellaneous/cli/dotnet.

scottaddie avatar May 11 '18 15:05 scottaddie