CefRuntimeSubscribeAnyCpuAssemblyResolver Method |
Version 104.4.240
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:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 104.4.240.0 (104.4.240.0)
Syntax public static void SubscribeAnyCpuAssemblyResolver(
string basePath = null
)
public:
static void SubscribeAnyCpuAssemblyResolver(
String^ basePath = nullptr
)
Parameters
- 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.
(
See Also