How do I set my development web browser in VS2010 RC?

前端 未结 10 1009
有刺的猬
有刺的猬 2021-01-01 08:58

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 debug

相关标签:
10条回答
  • 2021-01-01 09:24

    The "World of VS Default Browser Switcher" vs2010 extension will select your desired browser for you and it works with MVC too. This is a free extension :)

    http://visualstudiogallery.msdn.microsoft.com/en-us/bb424812-f742-41ef-974a-cdac607df921

    It was originally built based on a post by Scott Hanselman http://www.hanselman.com/blog/HowToChangeTheDefaultBrowserInVisualStudioProgrammaticallyWithPowerShellAndPossiblyPokeYourselfInTheEye.aspx

    0 讨论(0)
  • 2021-01-01 09:26

    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.

    0 讨论(0)
  • 2021-01-01 09:32

    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.

    0 讨论(0)
  • 2021-01-01 09:34

    "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.

    0 讨论(0)
  • 2021-01-01 09:34

    "Browse With..." Will not show up when you are in debug mode, FYI. That's probably why you think it's missing.

    0 讨论(0)
  • 2021-01-01 09:34

    The 'Browse With' option does exist. But it is shown in context menu of a file\folder and not in a context menu of whole web application.

    You may setup default browser there.

    0 讨论(0)
提交回复
热议问题