2

My default browser is Chrome. When I run my web applications within VS 2008 IDE, it uses chrome.

I want to use IE for this. Is there an option in VS 2008 to make IE the browser to load the web applications?

I just want this when using VS 2008 - I don't want to change my default browser each time otherwise.

EDIT: when creating a silverlight application.

John Saunders
  • 160,644
  • 26
  • 247
  • 397
waqasahmed
  • 3,555
  • 6
  • 32
  • 52
  • 1
    Exact Dupe: http://stackoverflow.com/questions/79954/visual-studio-opens-default-browser-instead-of-ie – Neil N Jul 15 '09 at 22:11
  • This is for silverlight application. There is no browse with when i right click on any time in the solution explorer – waqasahmed Jul 15 '09 at 22:21

4 Answers4

2

Right click on .aspx file in your solution tree, and click Browse With... then specify your default browser.


Sorantis
  • 14,496
  • 5
  • 31
  • 37
0

You could create a post-build event that runs FireFox.exe, pointing to the url of your website. You can edit post-build events by right-clicking on your Web Application, going to Compile, and clicking the Build Events button. Your post-build command could be something like "C:\Program Files\Mozilla Firefox\firefox.exe" http://localhost/mysite for example.

tbreffni
  • 5,082
  • 5
  • 31
  • 30
0

It sounds like you only have a Silverlight project in your solution. You need to add a web site like ASP.NET to your solution to use Browse With and post-build commands.

Samuel McAravey
  • 364
  • 1
  • 4
0

See this question: How do you change Visual Studio's default web browser?

But basically, create an html file inside your silverlight project, right click on it, select browse with... set the default browser. Now you can erase the html if you want to. The next time you debug your project, it will open with the browser you specified for the html file.

Community
  • 1
  • 1
Marco Luglio
  • 3,503
  • 1
  • 21
  • 27