Visual Studio 在哪里存储用于调试的默认浏览器? [英] Where does Visual Studio stores the default browser to use in debug?
问题描述
我使用 Firefox 作为我的默认浏览器,但在 Visual Studio 中工作时,我想在调试时启动 IE.
I'm using Firefox as my default browser but when working in Visual Studio, I'd like to fire up IE when I go in debug.
我们都知道在MVC应用程序中,没有办法选择默认浏览器,除非你添加一个web表单文件,右键单击它,选择浏览器,然后强制浏览器为默认浏览器.太好了.
We all know that in MVC application, there's no way to choose the default browser unless you add a web form file, right click it, select browse with and then force a browser to be the default one. Great.
我的简单问题是:VS 在哪里存储我只是告诉他使用的浏览器(注册表?项目文件?一些 xml 配置文件?)我厌倦了一次又一次地使用浏览器技巧.
My simple question is: where does VS stores the browser I just tell him to use (registry? project file? some xml config file?) I'm asking because VS loose this preference several times a month. I'm fed up with making the brower trick again and again.
提前致谢,法比安
推荐答案
我最终找到了这些设置.
I found these settings eventually.
它们存储在以下目录中名为 browsers.xml 的 XML 文件中:
They are stored in an XML file called browsers.xml in thge following directory:
**C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Microsoft\Visual Studio\9.0**
**C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Microsoft\Visual Studio\9.0**
XML 应如下所示:
<?xml version="1.0"?>
<BrowserInfo>
<Browser>
<Name>Firefox</Name>
<Path>"C:\Program Files\Mozilla Firefox\firefox.exe"</Path>
<Resolution>0</Resolution>
<IsDefault>True</IsDefault>
<DDE>
<Service>FIREFOX</Service>
<TopicOpenURL>WWW_OpenURL</TopicOpenURL>
<ItemOpenURL>%s,,0xffffffff,3,,,</ItemOpenURL>
<TopicActivate>WWW_Activate</TopicActivate>
<ItemActivate>0xffffffff</ItemActivate>
</DDE>
</Browser>
<Browser>
<Name>Internet Explorer</Name>
<Path>"C:\Program Files\Internet Explorer\IEXPLORE.EXE"</Path>
<Resolution>0</Resolution>
<IsDefault>False</IsDefault>
<DDE>
<Service>IExplore</Service>
<TopicOpenURL>WWW_OpenURL</TopicOpenURL>
<ItemOpenURL>"%s",,0xffffffff,3,,,,</ItemOpenURL>
<TopicActivate>WWW_Activate</TopicActivate>
<ItemActivate>0xffffffff,0</ItemActivate>
</DDE>
</Browser>
<InternalBrowser>
<Resolution>0</Resolution>
<IsDefault>False</IsDefault>
</InternalBrowser>
</BrowserInfo>
标签决定浏览器是否用于调试.
The <IsDefault>
tag determines whether or not the browser is used for debugging.
这篇关于Visual Studio 在哪里存储用于调试的默认浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!