Set Google Chrome as the debugging browser in Visual Studio

Visual Studio-2008Google Chrome

Visual Studio-2008 Problem Overview


When I press F5 in Visual Studio 2008, I want Google Chrome launched as the browser that my ASP.NET app runs in. May I know how this can be done?

Visual Studio-2008 Solutions


Solution 1 - Visual Studio-2008

Right click on an .aspx file and click "Browse with..." then select Chrome and click "Set as Default." You can select more than one browser in the list if you want.

There's also this really great WoVS Default Browser Switcher Visual Studio extension.

Solution 2 - Visual Studio-2008

  1. Go to the visual studio toolbar and click on the dropdown next to CPU (where it says IIS Express in the screenshot). One of the choices should be "Browse With..."

Visual Studio Toolbar

  1. Select a browser, e.g. Google Chrome, then click Set as Default

Browse With...

  1. Click Browse or Cancel.

Solution 3 - Visual Studio-2008

To add something to this (cause I found it while searching on this problem, and my solution involved slightly more)...

If you don't have a "Browse with..." option for .aspx files (as I didn't in a MVC application), the easiest solution is to add a dummy HTML file, and right-click it to set the option as described in the answer. You can remove the file afterward.

The option is actually set in: C:\Documents and Settings[user]\Local Settings\Application Data\Microsoft\VisualStudio[version]\browser.xml

However, if you modify the file directly while VS is running, VS will overwrite it with your previous option on next run. Also, if you edit the default in VS you won't have to worry about getting the schema right, so the work-around dummy file is probably the easiest way.

Solution 4 - Visual Studio-2008

For MVC developers,

  • click on a folder in Solution Explorer (say, Controllers)
  • Select Browse With...
  • Select desired browser
  • (Optionally click ) set as Default

Solution 5 - Visual Studio-2008

If you don't see the "Browse With..." option stop debugging first. =)

Solution 6 - Visual Studio-2008

in visual studio 2012 you can simply select the browser you want to debug with from the dropdown box placed just over the code editor

Solution 7 - Visual Studio-2008

For win7 chrome can be found at:

C:\Users\[UserName]\AppData\Local\Google\Chrome\Application\chrome.exe

For VS2017 click the little down arrow next to the run in debug/release mode button to find the "browse with..." option.

Solution 8 - Visual Studio-2008

Click on the arrow near by start button there you will get list of browser. Select the browser you want your application to be run with and click on "Set as Default" Click ok and you are done with this.

Solution 9 - Visual Studio-2008

In case you are using Visual Studio 2019: To change default browser type defaults in home, then click browser.

See this picture:

defaults apps

Reference/Source

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionGravitonView Question on Stackoverflow
Solution 1 - Visual Studio-2008John SheehanView Answer on Stackoverflow
Solution 2 - Visual Studio-2008codecypherView Answer on Stackoverflow
Solution 3 - Visual Studio-2008NickView Answer on Stackoverflow
Solution 4 - Visual Studio-2008ShivanandSKView Answer on Stackoverflow
Solution 5 - Visual Studio-2008TricklogikView Answer on Stackoverflow
Solution 6 - Visual Studio-2008Rzv.imView Answer on Stackoverflow
Solution 7 - Visual Studio-2008SoenhayView Answer on Stackoverflow
Solution 8 - Visual Studio-2008James WillyView Answer on Stackoverflow
Solution 9 - Visual Studio-2008FranToView Answer on Stackoverflow