Set default browser when debugging WPF?
A simple and easy way to do this is to associate *.htm or *.html (don't remember exactly, try both) files with IE, and it will work for XBAP.
UPDATE:
Solution described above works for "Start external program option".
For "Start browser with URL" option you actually can set default browser in Visual Studio. I don't find how to set it through Tools -> Options, but you can achieve it by following steps:
- In your solution explorer find a file which meant to be viewed in browser (e.g. *.htm, *.svc)
- Right click on this item and choose "Browse With..."
- In the opened window you'll see a list box with installed browser and one of them will be marked as default.
- In the list box Choose "Internet Explorer" and click "Set as Default" (if there is no IE browser in the list just add it).
Set Default browser to IE for WPF:
Project preporties -> Debug tab properties...
- Remove "-debug" only, if there in Command line arguments:(under Start Options)
- Choose Start external program ( under Start Action) and give the path of "iexplore.exe"(EX: C:\Program Files\Internet Explorer\iexplore.exe )