I have developed one winform
application which using geckofx22.0
and xulrunner
. So here i need to copy the xulrunner
folder to bin . so i did, and the program works cool. But the problem is when i publish this project it does not copy the xulrunner
folder in output directory and causes the application to crash . xulrunner
folder contains some dll
files and txt
which requires to run and initiate the geckofx
. Can anyone help in this ? how can i make the clickoneapplication can refer this xulrunner folder ?
I have initilized the xulrunner folder by following in my project and its worked good.
Gecko.Xpcom.Initialize(AppDomain.CurrentDomain.BaseDirectory + "/xulrunner");
Copy your xulrunner
folder into project. After set the properties for each files in the project as Build Action
to content
and Copy to Output Direcotry
to Copy if newer
or Copy always
. Then build your application . When you publish after these steps your xulrunner
will be deployed in output directory, so you can execute the ClickOnce application without any error.