In angular + asp.net core 3.1 project, I am getting this error, whenever I try to access anything related to EF.
dotnet ef 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 Core 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
Everything was working fine before. Due to some error I downloaded my old package of the project from GitHub and pasted, and now getting this error.
I have already set environment variables too
Error in dotnet CLI + .csproj file setup
My environmental variable set up
enter image description here
This problem is resolved when we open VS code in admin mode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With