Set Google Chrome as the debugging browser in Visual Studio

前端 未结 8 1206
故里飘歌
故里飘歌 2021-01-31 13:05

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?

相关标签:
8条回答
  • 2021-01-31 13:42

    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.

    0 讨论(0)
  • 2021-01-31 13:43

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

    0 讨论(0)
  • 2021-01-31 13:47

    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.

    0 讨论(0)
  • 2021-01-31 13:49

    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

    0 讨论(0)
  • 2021-01-31 13:56

    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.

    0 讨论(0)
  • 2021-01-31 14:00

    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.

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