Entity Framework command dotnet ef not working

Hi!
I installed EF Core tools to manage database migrations, but the command “dotnet ef” is not working.


I was searching and the problem seems to be PATH variables but I don’t know how it works here on IDX, is it possible to make it work?

Hey Jon,

I faced the same issue, and I was able to resolve it with these steps:

In the .nix file, you just need to make sure the dotnet-sdk package is included. Once that’s set up, you can run the following commands:

Install EF Tools Globally

dotnet tool install --global dotnet-ef

Use EF Tools Locally in the Project

dotnet new tool-manifest
dotnet tool install dotnet-ef

After these steps, you’re all set to use EF Tools! :grin: