我正在尝试使用 dotnet run 命令在浏览器中启动 swagger UI。这是我在 launch.json 文件中尝试过的内容。预期结果是它应该在指定的 url 处启动浏览器并自动打开 swagger UI。仅供参考,我正在使用 dotnet5 并创建了新的 Web api 项目,该项目已经内置了 swagger。它不会启动浏览器。
swagger-ui visual-studio-code asp.net-core-webapi
asp.net-core-webapi ×1
swagger-ui ×1
visual-studio-code ×1