无法执行 dotnet swagger 命令

Could not execute dotnet swagger command

我正在尝试执行 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.

我做错了什么,我该如何解决?

命令不再是dotnet swagger。仅swagger