Visual Studio 不要打开新的浏览器实例

Visual Studio Do not open new browser instance(Visual Studio 不要打开新的浏览器实例)
本文介绍了Visual Studio 不要打开新的浏览器实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在 Windows 10 上的 Visual Studio 2017RC 中运行 Web 应用程序时,它会打开一个新的浏览器实例(在我的例子中是 chrome).我也尝试过使用 Internet Explorer,情况相同,浏览器未登录,但如果我只是手动运行 chrome,它已登录.如何防止 Visual Studio 在我每次运行 Web 应用程序时运行新的浏览器实例?当我按下运行网站时,它应该在与上一个应用程序相同的窗口中打开(只是下一个选项卡)

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, situation is same, and browser not signed in, but if I just manually run chrome it is signed in. How to prevent visual studio to run a new browser instance on each time I run web application? When I press run website it should be opened in same window as previous application(just next tab)

推荐答案

我发现关闭 Javascript 调试意味着网站会在现有 Chrome 实例的新标签页中打开.根据我所见,Visual Studio 中的调试不如 Chrome 的开发工具好,所以关闭它对我来说不是问题.

I've discovered that Turning off Javascript debugging means that sites open in a new tab of an existing Chrome instance. From what I've seen the in Visual Studio debugging is not as good as Chrome's dev tools so turning this off is not an issue for me.

更新

从 VS2017 15.7.1 开始(在 VS2019 16.0.0 和 VS2022 17.0.0 PREVIEW 中仍然如此)此修复不再有效,我发现我必须另外取消选中 Stop debugger when browser窗口关闭

As of VS2017 15.7.1 (and still the case in VS2019 16.0.0 and VS2022 17.0.0 PREVIEW) this fix no longer works and I've found I've had to additionally uncheck Stop debugger when browser window is closed

这篇关于Visual Studio 不要打开新的浏览器实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
Visual Studio 2010 ReportViewer Assembly References(Visual Studio 2010 ReportViewer程序集引用)
how do i pass parameters to aspnet reportviewer(如何将参数传递给aspnet report查看器)
How to Create such a Task Panel?(如何创建这样的任务小组?)
Bind multiple parameters from route and body to a model in ASP.NET Core(在ASP.NET Core中将路由和主体中的多个参数绑定到一个模型)