Set Google Chrome as the debugging browser in Visual Studio

Viewed 147465

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?

10 Answers

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.

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.

For the new versions of Visual studio, click on the dropdown next to the dropdown of "IIS Express".

enter image description here

Now simply choose Browse With and choose Google Chrome, and click Set as default.

enter image description here

I hope it helps!!

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

Related