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
xulrunnerfolder into project. After set the properties for each files in the project asBuild ActiontocontentandCopy to Output DirecotrytoCopy if newerorCopy always. Then build your application . When you publish after these steps yourxulrunnerwill be deployed in output directory, so you can execute the ClickOnce application without any error.