public static string GetBrowserSubProcessPath() { string text = Path.Combine(CefLoader.GetBaseArchitectureSpecificPath(), "CefSharp.BrowserSubprocess.exe"); if (!File.Exists(text)) { throw new FileNotFoundException("Unable to locate", text); } return(text); }
private static Assembly Resolver(object sender, ResolveEventArgs args) { if (!args.Name.StartsWith("CefSharp")) { return(null); } string path = args.Name.Split(new char[] { ',' }, 2)[0] + ".dll"; string text = Path.Combine(CefLoader.GetBaseArchitectureSpecificPath(), path); if (!File.Exists(text)) { throw new FileNotFoundException("Unable to locate", text); } return(Assembly.LoadFile(text)); }
private static string GetBaseArchitectureSpecificPath() { return(Path.Combine(CefLoader.GetBasePath(), Environment.Is64BitProcess ? "x64" : "x86")); }