繁体   English   中英

dotnet ef 在最新的 SDK 更新后不起作用

[英]dotnet ef not working after the latest SDK is updated

我的系统是:Ubuntu 20.04。 zsh+ohmyzsh 终结者 kde

最近当我想运行dotnet-ef migrations add Add_Minor_Fields我得到:

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.

然后如果我这样做: dotnet tool install --global dotnet-ef

Tool 'dotnet-ef' is already installed.

自从我上次运行它以来发生了什么变化:

  1. 可能SDK和ef工具的新补丁版本已经发布
  2. 我已经安装了 KDE

可能是什么原因?

dotnet gloabl 工具的位置应该在路径中

见:这里

Linux/macOS: $HOME/.dotnet/tools

Windows: %USERPROFILE%\.dotnet\tools

尝试卸载 dotnet-ef 然后安装它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM