Search code examples
c#clickoncexulrunnergeckofxoutput-directory

Folder in bin/debug not copying to output directory


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");

Solution

  • 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.