启动调试时阻止 Visual Studio 启动新的浏览器窗口?

编程入门 行业动态 更新时间:2024-10-04 17:18:14
本文介绍了启动调试时阻止 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?

推荐答案

打开您的启动项目的属性(Project → {ProjectName} Properties... 从主菜单或右键单击您的项目Solution Explorer 并选择 Properties),然后导航到 Web 选项卡并在 Start Action 下选择 Don不打开页面.等待来自外部应用程序的请求.

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 启动新的浏览器窗口?

本文发布于:2023-11-03 04:15:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1554216.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:浏览器   窗口   Visual   Studio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!