I\'m trying to run my sample CefSharp WinForms project as a clickonceinstall application.
Everything is ok in the process of the creation, but when I try to install t
I also ran into this issue recently while deploying a ClickOnce application.
I found the solution for this problem on the CefSharp Issues page 1314 by the user @CRoemheld at this link here.
As noted elsewhere, ClickOnce will only bundle up managed .DLL's as part of its deployment process.
But we also need to include the native CEF DLL's as part of our app.
It doesn't look like there is an easy way to do this through the Visual Studio UI (I tried), but you can do it easily by manually modifying the .csproj file to include the following.
Open up your .csproj file and append the following snippet before the final identifier.
%(RecursiveDir)%(Filename)%(Extension)
false
%(RecursiveDir)%(Filename)%(Extension)
false
%(RecursiveDir)%(Filename)%(Extension)
false
%(RecursiveDir)%(Filename)%(Extension)
false
'
Once you do this, within Visual Studio, on the publish tab, when you click the "Application Files" button
You will see the required CEFSharp dependencies that will be deployed with the app.