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

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


当前回答

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

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

其他回答

在ASP中。Net 5项目现在可以为每个启动配置文件设置。

打开文件launchsettings。在Startup Project Properties文件夹下添加"launchBrowser": false到你正在配置的配置文件中,例如:

"profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": false,
      "environmentVariables": {
        "Hosting:Environment": "Development"
      }
    }
}

.NET核心Web Api项目的更新答案…

右键单击项目,选择“属性”,转到“调试”,取消“启动浏览器”复选框(默认启用)。

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

I looked over the answers and didn't see the solution I found mentioned. If it was, my apologies. In my case, currently using Visual Studio 2015. In the solution explorer, right click on the Project file and click properties. Go to the Debug tab and this should have info for how you're launching "IIS Express or Web(DNX)" for the first two drop downs, and then there should be a checkmark box for "Launch URL:". Uncheck this option and your browser won't be automatically launched everytime you go to debug your application. Hope this helps someone out.

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

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