views:

322

answers:

4

Hi

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.

+1  A: 

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


Sorantis
okay i am using silverlight... Silverlight page... how can i do it in that?
waqasahmed
I'd suggest looking into project properties.The principle should be the same.
Sorantis
I can't find it. Do you know where exactly?
waqasahmed
A: 

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
I don't see compile item when I right click. I am using SIlverlight btw.
waqasahmed
A: 

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.

McAravey
I agree the solution is to add a Web Site/App project to the solution but what would the post-build commands do?
AnthonyWJones
A: 

See this question: http://stackoverflow.com/questions/181992/how-do-you-change-visual-studios-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.

facildelembrar