Changing the default browser in Visual Studio 2010
I found a quite funny behavior in Visual Studio 2010 when working with Silverlight applications. The problem is that if your running Silverlight applications in Firefox it doesn’t clear the cache when loading your test page. End result is that your running an old version of the Silverlight code every time you debug.
A possible workaround is to change the browser used while debugging to Internet Explorer.
This is how you do it:
- Start a new Web site project (It can’t be done in a Silverlight project)
- Right click a webpage
- Select “Browse With”
- In the displayed dialog, select Internet Explorer
- Press the set default button
- Now close the dialog
- Open the Silverlight project
Now all debugging will open in Internet Explorer instead. Internet Explorer clears the cache when doing debugging, so you shouldn’t experience the problem.