Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 843
Ben Lesh Avatar asked Mar 02 '10 16:03

Ben Lesh


2 Answers

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.

like image 176
Peter Avatar answered Sep 23 '22 04:09

Peter


This is for VS2008, but should apply just as well to VS2010.

You have several options.

Go to the web project properties to the "web" tab.

Option 1:

  • Under "Start Action", select "Start External Program" and set the path to your browser of choice, pass the URL in through the command line parameters

Option 2:

  • Setup your machine to use your browser of choice as the default browser.
  • Under "Start Action", select "Start URL". This will invoke the default browser.
like image 42
Oded Avatar answered Sep 26 '22 04:09

Oded