更改Visual Studio的默认浏览器在ASP.NET MVC项目 [英] Change Visual Studio Default Browser in an ASP.NET MVC project

查看:109
本文介绍了更改Visual Studio的默认浏览器在ASP.NET MVC项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

火狐设置为Windows的默认浏览器。

我要改变由Visual Studio进行调试使用的默认浏览器。通常的路线我会采取这样做是.aspx文件中右击和设定从浏览与... 对话框的默认。

不幸的是,ASP.NET MVC视图没有浏览与... 选项。

在什么其他方法可以在设置默认浏览器为ASP.NET MVC项目?


  

相关,但不是ASP.NET MVC特定的:结果
  <一href=\"http://stackoverflow.com/questions/79954/visual-studio-opens-default-browser-instead-of-ie\">Visual Studio将打开默认的浏览器,而不是Internet Explorer中



解决方案

似乎有一个答案<一个href=\"http://www.geeksandgurus.com/blogs/sjb/2009/03/how-to-change-default-browser-in-visual.html\">here


  

如果你右击以外的任何页面上
  比Default.aspx的,你不会得到的
  用浏览选项。


  
  

因此​​,在一个ASP.NET MVC工作时
  应用程序,右击
  的Default.aspx并选择浏览
  有了......那么,你会得到一个对话框
  这将允许您更改
  默认浏览器。


Firefox is set as Windows' default browser.

I want to change the default browser used by Visual Studio for debugging. Normally the route I'd take to do this is right clicking on an .aspx file and setting the default from the Browse With... dialog.

Unfortunately, ASP.NET MVC Views don't have the Browse With... option.

In what other ways can you set the default browser for ASP.NET MVC projects?

Related, but NOT ASP.NET MVC specific:
Visual Studio opens the default browser instead of Internet Explorer

解决方案

There appears to be an answer here

If you right click on any page other than default.aspx you will not get the "browse with" option.

So, when working on an ASP.NET MVC application, right click on default.aspx and chose "Browse With..." Then you'll get a dialog that will allow you to change your default browser.

这篇关于更改Visual Studio的默认浏览器在ASP.NET MVC项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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