【问题标题】:Could not execute dotnet swagger command无法执行 dotnet swagger 命令
【发布时间】: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 listdotnet tool list -g 显示什么?
  • @Kevin Smith dotnet tool list 显示一个空列表,dotnet tool list -g 显示已安装的swashbuckle.aspnetcore.cli 工具

标签: asp.net-core swagger swashbuckle dotnet-tool


【解决方案1】:

命令不再是dotnet swagger。仅限swagger

【讨论】:

    猜你喜欢
    • 2020-04-15
    • 2020-12-23
    • 2021-09-12
    • 2019-03-29
    • 1970-01-01
    • 1970-01-01
    • 2020-06-19
    • 2016-08-20
    • 2020-03-08
    相关资源
    最近更新 更多