You must add <CefSharpAnyCpuSupport>true</CefSharpAnyCpuSupport>
to the first <PropertyGroup>
in your project (e.g. .csproj
file).
AppDomain.CurrentDomain.AssemblyResolve += Resolver;
https://github.com/cefsharp/CefSharp/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aclosed+anycpu
Option 2
Add a dependency resolver, this is more complicated and needs to be hooked up before any calls to classes in the CefSharp.* namespaces. Here is one method of doing this, I'll add some helper classes in the future. It's important that LoadApp is not in-lined, so the calls to CefSharp are delayed long enough to hookup the Assembly Resolver
Add <CefSharpAnyCpuSupport>true</CefSharpAnyCpuSu