ClickOnceInstall CefSharp Winforms Problems
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 </Project>
identifier.
<ItemGroup>
<Content
Include="$(SolutionDir)packages\cef.redist.x86.3.2526.1362\CEF\**\*" Exclude="$(SolutionDir)packages\cef.redist.x86.3.2526.1362\CEF\x86\**\*;$(SolutionDir)packages\cef.redist.x86.3.2526.1362\CEF\locales\**\*.pak">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packages\cef.redist.x86.3.2526.1362\CEF\**\en-GB.*;$(SolutionDir)packages\cef.redist.x86.3.2526.1362\CEF\**\en-US.*">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packages\cef.redist.x86.3.2526.1362\CEF\x86\**\*">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packages\CefSharp.Common.47.0.4\CefSharp\x86\**\CefSharp.BrowserSubprocess.*">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>'
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.
I downloaded CefSharp and used the default WinForms example.
I had issues building in x64 so I skipped that and used x86.
This had a problem with the oneclick launcher. The logfile said it was crashing due to a manifest issue.
I found this which suggests a change to the settings .
"In project properties -> Application tab -> Resources -> checkbox Icon and manifest, the setting "Embed manifest with default settings" caused the problem. Setting it to "Create application without a manifest" fixes the problem."
I then deleted the manifest file under the WinForms.example tree. Performed a clean build and published!
Now I have a working oneclick.
Hopefully the manifest issue is the same as the one you are having.