Open Closed

ASP.NET Zero Power Tools #10766


0
Loizos created
  • What is your product version: 10.5.0
  • What is your product type (Angular or MVC): Angular
  • What is product framework type (.net framework or .net core) .NET 5.0, using VS2022

I've fixed Power tools based on previous post I've seen, so I installed "dotnet-runtime-2.2.0-win-x64", hence after clicking on Generate button, the commant prompt now opens eventually and starts generating the necessary source code. However, I am still getting below error when it comes to EF migration. Please advise.

Running add-migration... 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. Running migrator... 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.

2 Answer(s)