How do I set my development web browser in VS2010

2019-02-11 10:06发布

I don't like to use IE for my system default web browser.

but

I do want to set IE as my browser in VS2010 because it works a little nicer for debugging and I like to develop to the lowest common denominator. (jab, lol)... anyhow, can I default to debugging against IE?

I know in VS2008 you just had to "Browse With..." on an .aspx page. But that option doesn't exist in VS2010 RC. What gives?

10条回答
Melony?
2楼-- · 2019-02-11 10:58

Yes Tim and Monsingor is Right go to SubFcontext menu of a file\folder and right click and set default Browser sadhana

查看更多
虎瘦雄心在
3楼-- · 2019-02-11 11:01

The solution really is not that difficult, though it is not as direct as it ought to be...

In Visual Studio 2010, the Browse With option is available. However, it is not available for MVC Views!

Simply add a Web Form or HTML Page to your project, and Browse With is readily available in it's context menu. Here you can set the Default Browser, and that setting will be used for all subsequent debugging.

查看更多
做个烂人
4楼-- · 2019-02-11 11:01

"Browse With..." only appears in VS2010 (aspx page context menu) when you already have IE set as the default browser for everything (system). It's there to let you select an alternate browser to IE.

This is a big #fail in my opinion. I've had moderate success with thtese steps.

  1. Set IE as default system browser
  2. Open VS2010.
  3. Set IE as default browser using "Browse With"
  4. Change your default system browser back to your preferred choice (while VS2010 is still open)

I say moderate results because the settings don't seem to persist or aer randomly persisted at best.

查看更多
手持菜刀,她持情操
5楼-- · 2019-02-11 11:06

right click on the project . Then add-> new item -> HTML Page

A "HTMLPage1.htm" will be added to the project. "Browse With ..." exists in its context menu. Use its Browse With menu then delete the file after done.

查看更多
登录 后发表回答