示例#1
0
        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);
        }
示例#2
0
        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));
        }
示例#3
0
 private static string GetBaseArchitectureSpecificPath()
 {
     return(Path.Combine(CefLoader.GetBasePath(), Environment.Is64BitProcess ? "x64" : "x86"));
 }