0

When I do migration (dotnet ef migrations add InitialCreate) in the terminal, in the rider, I get the following:

Could not execute because the specified command or file was not found. Possible reasons for this include:

  • You misspelled a built-in dotnet command
  • You intended to execute a .NET program, but dotnet-ef does not exist
  • You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH

P.S. dotnet tool install -g dotnet-ef does not help, and I installed all the necessary packages because this project works on Windows, but it doesn't work here.

Chris Catignani
  • 3,857
  • 6
  • 29
  • 40
  • Can you show the output from "dotnet tool install -g dotnet-ef"? One thing I have tried before is do run dotnet-ef directly. If you search for the executable on the disk and try to run it, it might work. You could also try to add it to the path. See https://stackoverflow.com/questions/56862089/cannot-find-command-dotnet-ef – Marcus May 15 '21 at 08:33

0 Answers0