【发布时间】:2022-01-18 00:34:35
【问题描述】:
在 VS Code 终端上运行以下命令时出现错误
dotnet ef -h
这是错误:
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.
但是在 Windows 的 cmd 上一切正常。
基于this question,我确信PATH 已在环境变量中正确定义。
【问题讨论】:
标签: visual-studio-code .net-core