【发布时间】:2020-05-06 06:26:12
【问题描述】:
我正在尝试执行dotnet swagger 命令但收到错误消息:
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-swagger 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.
- swashbuckle.aspnetcore.cli (5.0.0) 工具已全局安装。
- 工具的路径已设置。
我做错了什么,我该如何解决?
【问题讨论】:
-
运行
dotnet tool list和dotnet tool list -g显示什么? -
@Kevin Smith
dotnet tool list显示一个空列表,dotnet tool list -g显示已安装的swashbuckle.aspnetcore.cli工具
标签: asp.net-core swagger swashbuckle dotnet-tool