views:

2517

answers:

3

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?

+16  A: 

Right click on an .aspx file and click "Browse with..." then select Chrome and click "Set as Default"

You can actually select more than one browser in the list if you want.

John Sheehan
Assuming you can actually find chrome.exe, that is. On my Windows XP PC, it's buried at `C:\Documents and Settings\MyUserName\Local Settings\Application Data\Google\Chrome\Application\chrome.exe`.
Kyralessa
+6  A: 

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.

Nick
A: 

Hi Just right click on the page you want to view in chrome and select browse with, a list of browsers will appear and select chrome and make it default. Thats it

Sriman