Sunday, May 9, 2010

Specifying the default browser for running ASP.NET MVC projects in VS2008

By the default Visual Studio 2008 runs web sites/applications in the Internet Explorer. When you are opening ASP.NET MVC project there is no way in the IDE to change this behaviour. So, if you want to make your ASP.NET MVC project to run in the Chrome, for example, you need to do the following:
  1. Open/create a simple (non-MVC) web site in the Visual Studio.
  2. Select any .aspx file, or the site root in the Solution Explorer window.
  3. Go to File -> Browse with...

Then you need to specify your default browser. If you don`t find the browser what you want in the available browsers list, you can add a new browser by specifying path of it`s executable:


Changes you made are global and affect every web project in the Visual Studio. Now you can switch to your ASP.NET MVC project and enjoy it`s running in your favorite browser.

No comments:

Post a Comment