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.
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
2 Answer(s)
-
0
Hi,
Could you install https://docs.microsoft.com/en-us/ef/core/cli/dotnet#installing-the-tools and try again ?
Thanks
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi,
Yes, that solved the problem! Thank you very much @ismcagdas
Loizos
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)