简体   繁体   中英

Start development server not on the default browser

I have ASP.NET MVC 4 application and I am debugging it with the built it development server( not IIS) my default browser is firefox so every time I click on "Debug" it open new firefox tab. I want to check my web on chrome also. what is the easiest way to make it? ( I don't want to change my default browser).

Choose a page in your project and right click and choose browse with and select your browser and set default

在此输入图像描述

在此输入图像描述

In MVC :

If you right click on any page other than default.aspx you will not get the "browse with" option.

So, when working on an ASP.NET MVC application, right click on default.aspx and chose "Browse With..." Then you'll get a dialog that will allow you to change your default browser.

NOTE:

for ASP.NET MVC3 projecs,You need to specifically add a .htm or .html page, and then right click that and choose Browse With and set to default

ALternative:

Default Browser Changer extension Link

When you are in debug mode and it loads in Firefox, copy the url to the other browser.

Then go to Debug > Attach to Process, and select the process for the other browser and click [Attach].

A different approach using powershell scripts is shown in this blog post .

Ultimately, the easiest approach would be to use Visual Studio 2012 or 2013, which have this functionality built in to the debug button in the menu.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM