![]() If you use a distribution package, they screwed up and you should report this as a bug to them. If you installed using a manual tarball, the SDK screwed up and you should report this bug to Microsoft. These locations are added to the user's path when the SDK is first run, so Global Tools installed there can be called directly. So, you should add $HOME/.dotnet/tools/ to your $PATH. Global Tools can be installed in the default directory or in a specific location. As the third point says, dotnet-ef is not in your path. The second and the third one both refer to dotnet trying to find a dotnet-ef command but can't find it. * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH. I have created a solution called Driver with two. NET Core 2.0 and EF 2.0 but I cant get add-migration to create the migrations folder and the initial migration. NET Core program, but dotnet-ef does not exist. Im new to EF and am trying to create a simple test solution using VS 2017. * You misspelled a built-in dotnet command. NET Core 3.0 (preview) version of this failure is much more illuminating: $ dotnet efĬould not execute because the specified command or file was not found. You need to add %USERPROFILE%\.dotnet\tools to the PATH. See this question on how to add to the PATH environment variable. When you start a new shell/terminal (or the next time you log in) dotnet ef should work. How to fix thisįor Linux and macOS, add a line to your shell's configuration:īash/ zsh: export PATH="$PATH:$HOME/.dotnet/tools/"Ĭsh/ tcsh: set path = ($path $HOME/.dotnet/tools/) You need to do that first before the rest of this answer can help. Note to readers: If you haven't installed dotnet ef, you need to install it first: dotnet tool install -global dotnet-ef. ![]() NET Core SDK (reflecting any global.json): This is the 'dotnet -info' result, if it's of help: WebApiServerApp]$ dotnet -info The result of running 'dotnet ef': WebApiServerApp]$ dotnet ef -helpĬannot find command 'dotnet ef', please run the following command to installĭotnet tool install -global WebApiServerApp]$ dotnet tool list -g I've just about looked everywhere and none of the suggestions worked. NET Core 2.0 on Arch Linux / Visual Studio Code and am trying to get EF tools to work, but I keep getting the error:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |