When using AnyCPU the architecture specific version of CefSharp.Core.Runtime.dll
needs to be loaded (x64/x86).
This method subscribes to the AssemblyResolve
and loads the CefSharp.Core.Runtime.dll
based on Is64BitProcess
This method MUST be called before you call Cef.Initialize, create your first ChromiumWebBrowser instance, basically
before anything CefSharp related happens. This method is part of CefSharp.dll which is an AnyCPU library and
doesn't have any references to the CefSharp.Core.Runtime.dll so it's safe to use.
CefSharp (in CefSharp.dll) Version: 22.214.171.124 (126.96.36.199)
public static void SubscribeAnyCpuAssemblyResolver(
string basePath = null
- basePath (Optional)
- Type: SystemString
The path containing the x64/x86 folders which contain the CefSharp/CEF resources.
If null then AppDomain.CurrentDomain.SetupInformation.ApplicationBase will be used as the path.