How to run ASP.NET 5 without opening a page in the browser

时间:2015-12-14 18:08:09

标签: asp.net-core

Prior to ASP.NET 5, there used to be an option in Visual Studio 2015 in the project properties | Web page for the start action not to open a page when running the web app. This allowed you to have an existing page open in the browser and just refresh it.

This option has now disappeared, resulting in a new browser page being opened every time I hit run, even though I have a page open at the correct URL etc. ready to be refreshed.

How can I get the previous behaviour?

1 个答案:

答案 0 :(得分:8)

在项目属性的“调试”页面中,有一个复选框"启动URL"。取消选中它会阻止VS在浏览器中启动页面。