VS浏览器中的Internet Explorer 10默认浏览器(2010)

时间:2012-03-11 12:36:19

标签: visual-studio

有一些方法可以将IE10设置为visual studio中的默认浏览器吗? 我正在使用VS 2010。

3 个答案:

答案 0 :(得分:1)

我发现了两种可能的解决方案,因为你无法在VS2010中设置默认浏览器。但我知道它使用系统默认值(它之前使用IE浏览器 - 现在它使用chrome)。

  1. 对于使用浏览器的每个项目,将IE10设置为在F5上运行的应用程序。 打开项目属性,选择Web选项卡,然后将“启动外部程序”设置为IE10可执行文件。

  2. 将IE10设置为系统默认浏览器。

答案 1 :(得分:0)

如果你想执行网站,即尝试执行: iexplore.exe http://site.com 或者像那样

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents=false;
proc.StartInfo.FileName="iexplore";
proc.StartInfo.Arguments=http://www.microsoft.com;
proc.Start();

如果你想在系统上做默认,那就按Reg:

整体操作系统的设置:

[HKey_Local_Machine\Software\Microsoft\Internet Explorer\Main]
"Check_Associations"="yes"
"Check_Associations"="no"

当前设置(已登录为活动状态)用户: (这应该覆盖上面的那个)

[HKey_Current_User\Software\Microsoft\Internet Explorer\Main]
"Check_Associations"="yes"
"Check_Associations"="no"

...好运

答案 2 :(得分:0)

如果您正在使用网站项目:

  1. 右键单击“网站项目文件”
  2. 选择“浏览方式”
  3. 选择“Internet Explorer”
  4. 点击“设为默认值”
  5. 点击“浏览”
  6. 这将确保每次启动项目时(当您单击F5时),它将使用Internet Explorer启动。