C# 英孚曼加罗时装秀;“无法执行”;但是它';已安装

C# 英孚曼加罗时装秀;“无法执行”;但是它';已安装,c#,linux,entity-framework,.net-core,entity-framework-core,C#,Linux,Entity Framework,.net Core,Entity Framework Core,我正试图与ef合作,但它不想工作 有什么问题 我已将ef安装为global,bash-see-dotnet,因此路径正常,但不起作用 [pupptmstr@pupptmstrLapbook ~]$ dotnet --version 3.1.107 [pupptmstr@pupptmstrLapbook ~]$ dotnet tool install --global dotnet-ef Tool 'dotnet-ef' is already installed. [pupptmstr@puppt

我正试图与ef合作,但它不想工作

有什么问题

我已将ef安装为global,bash-see-dotnet,因此路径正常,但不起作用

[pupptmstr@pupptmstrLapbook ~]$ dotnet --version
3.1.107
[pupptmstr@pupptmstrLapbook ~]$ dotnet tool install --global dotnet-ef
Tool 'dotnet-ef' is already installed.
[pupptmstr@pupptmstrLapbook ~]$ dotnet ef
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.
[pupptmstr@pupptmstrLapbook ~]$ dotnet tool list
Package Id      Version      Commands      Manifest
---------------------------------------------------
[pupptmstr@pupptmstrLapbook ~]$ 

你试过重新启动bash吗?几次。我一直在重新启动bash和OSOk,我做了“which dotnet ef”,它显示该工具位于~/.dotnet/tools/dotnet ef中。检查它是否在那里。如果您在那里找到它,那么您可以简单地尝试将~/.dotnet/tools添加到您的路径中。