Click or drag to resize

CefRuntimeLoadCefSharpCoreRuntimeAnyCpu Method

Version 102.0.100
When using AnyCPU the architecture specific version of CefSharp.Core.Runtime.dll needs to be loaded (x64/x86). This method calls LoadFile(String) to immediately load 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: (
public static void LoadCefSharpCoreRuntimeAnyCpu(
	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. (
See Also