Problem
Recently upgraded a project to the latest dotnet SDK version. In doing so I no longer had a valid version of dotnet-ef. When running the and-cli migration command, while it does what is expected and outputs possible issues, the and-cli could reconcile it for the user.
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.
Solution
When the migration command is run, do an initial check to see if the global dotnet-ef tool is installed. If not, automatically run the install...
Problem Recently upgraded a project to the latest dotnet SDK version. In doing so I no longer had a valid version of
dotnet-ef
. When running theand-cli migration
command, while it does what is expected and outputs possible issues, the and-cli could reconcile it for the user.Possible reasons for this include:
Solution When the migration command is run, do an initial check to see if the global
dotnet-ef
tool is installed. If not, automatically run the install...dotnet tool install -g dotnet-ef