我已经打开了一个窗口与我正在调试的网站。我不需要VS为我启动另一个每当我需要调试。

有没有办法阻止这种行为?


当前回答

对于VS2022和ASP。NET核心:

另一个快捷方式是:单击右边绿色三角形按钮上的小下拉按钮,上面有项目名称,这通常会启动调试版本。然后是最后一个选项“{项目名}调试属性”,它直接启动专用的UI窗口。

从那里遵循@irf的建议:

“uncheck”选项不自动打开。

其他回答

我已经通过以下步骤解决了我的问题。 进入工具>>单击选项>>单击项目和解决方案>> web项目>> 取消“关闭浏览器时停止调试”选项

您可以右键单击您的项目,然后选择属性,在调试选项卡上,您应该取消选中启动浏览器复选框。

CTRL+ALT+ENTER如果你的修正是前端

http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-preview-2013.aspx

对于VS2022和ASP。NET核心:

另一个快捷方式是:单击右边绿色三角形按钮上的小下拉按钮,上面有项目名称,这通常会启动调试版本。然后是最后一个选项“{项目名}调试属性”,它直接启动专用的UI窗口。

从那里遵循@irf的建议:

“uncheck”选项不自动打开。

There seems to be one case in which none of the above but the following helps. I'm developing a project for Windows Azure cloud platform and I have a web role. There is indeed a radio button Don't open page in Project -> {Project name} properties... as was pointed out by Pawel Krakowiak, but it has no effect in my case whatsoever. However, there is the main cloud project in solution explorer and there is the Roles folder under it. If I right click my web role in this folder and choose Properties, I get another set of settings and on the Configuration tab there is the Launch browser for flag, after unchecking it a new browser window is not opened on application start up.