1

我使用 Visual Studio Community 2019 Preview Version 16.0.0 Preview 4.1 创建了一个新的 MVC Web 应用程序。我将App URL设置为https://localhost:5001并将Launch browser设置为https://localhost:5001/。它在 IIS Express 上运行良好,但在 Chrome 中使用 Kestrel 时存在问题(Firefox 可以)。

控制台输出显示:

Now listening on: https://localhost:5001

但是 Chrome 正在切换到https://localhost.:5000

此外,如果我在 Visual Studio 2017 中使用 Chrome 运行相同的东西,则不会发生这种情况。

4

0 回答 0