Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migration command verify installation of dotnet-ef global tool #64

Open
wintondeshong opened this issue Jun 3, 2020 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@wintondeshong
Copy link
Contributor

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...

dotnet tool install -g dotnet-ef

@wintondeshong wintondeshong added the enhancement New feature or request label Jun 3, 2020
@brandongregoryscott
Copy link
Contributor

I've run into this recently as well, good catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants