Visual Studio Do not open new browser instance

前端 未结 7 1818
南旧
南旧 2020-12-04 11:14

when I try to run a web application in visual studio 2017RC on windows 10, it opens a new browser instance(in my case chrome). I\'ve tried also with internet explorer, situa

相关标签:
7条回答
  • 2020-12-04 11:39

    I wanted to share the reason of the issue as well as the screen shot. The reason for which it opens a new window is because JS debugging is enabled. Chrome is launched with debugging enabled so a new instance is required. If you want to revert to the old behavior from Visual Studio 2015, you can do so but you would have to disable JS debugging. See below:

    Original Source

    Original Discussion on Visual Studio Forum

    0 讨论(0)
  • 2020-12-04 11:42

    This workaround works for me for VS 2019

    Tools => Options

    Then type Projects and Solutions in the search box.

    Then Select Web Project.

    Then deselect the below option.

    Stop debugger when browser windows is closed, close browser when debugging stops.

    This works for me. Hope this will help.

    0 讨论(0)
  • 2020-12-04 11:46

    Have a look into this link. you will find solution for your question and some more information about what happens when you start/stop debugging and when you close the browser window

    0 讨论(0)
  • 2020-12-04 11:51

    I prefer to set mine like this, I run the page from where I want (no new instance or tab opening)

    0 讨论(0)
  • There is solution to that problem. Very Simple please follows the below Steps.

    • Open Visual Studio
    • Go to "Tools" and then go to "Options"
    • Select "Projects and Solutions" and in that select "Web Projects"
    • Please uncheck this Option "Stop debugger when browser window is closed, close browser when debugging stops"
    • Click Ok

    Now start project, it will not open in new chrome Instant but in a already running Chrome Instant.

    0 讨论(0)
  • 2020-12-04 11:56

    You can disable the website from being launched at all from the debug settings.

    Once the web application is running you can launch the website from the taskbar.

    The "Browse With..." menu option appears to launch the website without running the debug session in VS2017 which might not be what you want.

    0 讨论(0)
提交回复
热议问题