dotnet ef Could not execute because the specified command or file was not found

.net-core c# dotnet-cli entity-framework entity-framework-core

Question

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

1
3
2/2/2020 1:02:55 AM

Accepted Answer

This problem is resolved when we open VS code in admin mode.

0
2/26/2020 5:31:55 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow