I have a C# Windows Form application that has a browser feature using the CefSharp browser control. The browser works fine when debugging through VS and when I run it directly from the /Release folder. The problem occurs when I run it through the ClickOnce installation. Anytime I go to open the browser I get an error
System.IO.FileNotFoundException: Could not load file or assembly 'CefSharp.WinForms, Version=86.0.241.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138' or one of its dependencies. The system cannot find the file specified.
File name: 'CefSharp.WinForms, Version=86.0.241.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138'
Any idea how I can solve this?
EDIT
Done a bit of digging and it seems that none of the CefSharp resources are within the application folder. How can I change this?
EDIT 2
Managed to add the Cefsharp files through 'Application Files' in the publish tab. Doesn't fix the error but the some of the files are showing in the folder. As you can see below.
The error now looks like this.