簡體   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