rider-efcore: Cannot use update database or add migration.

Hi, i just started to learn .NET and this is my first project. I use JetBrains Rider on linux (Mint) and i was trying to create migrations and update my database using the efcore, but it doesnt work, it says that cant find the dotnet ef. But when i run on my terminal it works.

image

translation:

`/home/atila/.dotnet/dotnet ef database update --project GeekShopping.ProductApi/GeekShopping.ProductApi.csproj --startup-project GeekShopping.ProductApi/GeekShopping.ProductApi.csproj --context GeekShopping.ProductApi.Model.Context.MySqlContext --configuration Debug 20240221142417_AddProductDataTableOnDb

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.

Process finished with exit code 1. `

and thats my PATH: image

About this issue

  • Original URL
  • State: open
  • Created 4 months ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

open -a Rider in console and EF tool works: image