My system is: Ubuntu 20.04. zsh+ohmyzsh terminator kde
Recently when I wanted to run dotnet-ef migrations add Add_Minor_Fields
I get:
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.
Then if I do: dotnet tool install --global dotnet-ef
Tool 'dotnet-ef' is already installed.
What has changed since the last time I've run this:
What can be the reason?
The location of dotnet gloabl tools should be in path
see:here
Linux/macOS: $HOME/.dotnet/tools
Windows: %USERPROFILE%\.dotnet\tools
Try uninstalling dotnet-ef and then installing it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.