启动调试时,阻止Visual Studio启动新的浏览器窗口? [英] Stop Visual Studio from launching a new browser window when starting debug?

查看:213
本文介绍了启动调试时,阻止Visual Studio启动新的浏览器窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我正在调试的网站上打开一个窗口。每次我需要调试时,我都不需要VS为我启动另一个。

I already have a window open with the web site I'm debugging. I don't need VS to launch another one for me every time I need to debug.

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

Is there a way to stop this behavior?

推荐答案

从主菜单中打开启动项目的属性(项目 - > {ProjectName}属性... 或右键单击您的项目在解决方案资源管理器中选择属性),然后导航到 Web 选项卡,在开始操作下选择不要打开页面。等待来自外部应用程序的请求

Open your startup project's properties (Project->{ProjectName} Properties... from the main menu or right click your project in the Solution Explorer and choose Properties), then navigate to the Web tab and under Start Action choose Don't open a page. Wait for a request from an external application.

您仍然可以使用任何浏览器(或Fiddler,无论如何)来访问正在运行的应用程序,但是它不会自动打开浏览器窗口,它只会在后台启动并等待任何请求。

You will still be able to use any browser (or Fiddler, whatever) to access the running application, but it won't open the browser window automatically, it'll just start in the background and wait for any requests.

这篇关于启动调试时,阻止Visual Studio启动新的浏览器窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆