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

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


当前回答

以下是对我有用的方法:

去项目属性>调试>取消“启动浏览器”>保存。

其他回答

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

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

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

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.

这个变通方法对我来说适用于VS 2019

工具=>选项

然后在搜索框中键入项目和解决方案。

选择Web项目。

然后取消下面的选项。

关闭浏览器窗口时停止调试器,调试停止时关闭浏览器。

这对我很有用。希望这能有所帮助。

看起来2022年的维密秀已经改变了,

现在它有一个专门的用户界面,

右键单击项目(在解决方案资源管理器中)>选择属性,然后遵循:-


“uncheck”选项不自动打开。

或者您可以单击菜单栏,调试>属性

你可以直接从那里到达第二步“启动配置文件”

或者一个捷径:

选择项目(在解决方案资源管理器中)并按Alt + Enter,然后从那里开始。