CefRuntimeSubscribeAnyCpuAssemblyResolver Method |
Version 130.1.90
When using AnyCPU the architecture specific version of CefSharp.Core.Runtime.dll
needs to be loaded (x64/x86).
This method subscribes to the
AssemblyResolve event
for
CurrentDomain 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.
Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax public static void SubscribeAnyCpuAssemblyResolver(
string basePath = null
)
public:
static void SubscribeAnyCpuAssemblyResolver(
String^ basePath = nullptr
)
Parameters
- basePath String (Optional)
-
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.
(
See Also