Launching a WPF Browser Application in a Web Browser

I want to install my WPF browser application in the whitch browser. Is it possible? If I click on the Debug button, it will launch my application in Google Chrome, but I want to run it in IE, because in Google Chrome I do not have xpcom.dll.

EDIT:

enter image description here

+4
source share
2 answers

I think you usually do this by setting a launch action. Right-click the startup project in Solution Explorer and select properties. Go to the debugging tab and at the beginning of the action should be possible to run an external program where you can select your preferred browser and configure the command line arguments accordingly.

The problem is that I have the feeling that it is only available in the full version of the visual studio ... maybe you are using the express version?

+2
source

It is impossible to do this, I was looking for the configuration of Visual Studio, there is no way to set the browser as the default visual studio browser. But if it’s very important for you to view it in a specific browser, you can switch the default browser application to the app.cs project file. look at these links, I hope this helps you understand how to change it in your code [WPF application only] . I looked at the project properties in Solution Explorer, you can go to the debug tab inside the Start Action, select "Run an external program", select the IE executable, then in the "Start" section of the "Clean" -Debug command line argument, then launch your application. You will see that it runs inside IE and loads the file YOUR_APP_NAME.xbap .

How to change the default browser using C #

0
source

All Articles