为什么在VS for Mac中运行控制台应用程序还会启动浏览器选项卡以访问ASP.Net应用程序

时间:2019-01-05 11:29:45

标签: c# asp.net .net visual-studio orchardcms

环境:适用于Mac的Mac Book Laptop和Visual Studio Community 2017, 重现步骤:

  1. 从Github检出Orchard.Core(ASP.NET Core应用程序):https://github.com/OrchardCMS/OrchardCore
  2. 构建它并使用“ dotnet run”运行它,因此ASP.NET Core在端口5000上运行
  3. 启动Visual Studio
  4. 创建一个新的控制台应用程序,添加“ Console.ReadLin();”作为Main方法中的最后一条语句
  5. 按“运行”按钮以调试模式运行此控制台应用程序
  6. 该应用程序在终端中运行,并立即打开Web浏览器选项卡,并打开localhost:5000

0 个答案:

没有答案