CefWebBrowser doesn't show up

前端 未结 4 2057
刺人心
刺人心 2021-02-03 11:22

Solution:

This issue is caused by not loading the CefRuntime in the Program.cs. Simply copying all code in the sample file to your Program.cs.

A

4条回答
  •  [愿得一人]
    2021-02-03 11:55

    I also had the same problem,I solved it by modify "BrowserSubprocessPath",the defualt is like this:

            //var browserProcessPath = CombinePaths(localFolder, "..", "..", "..",
            //    "CefGlue.Demo.WinForms", "bin", "Release", "Xilium.CefGlue.Demo.WinForms.exe");
    
            var browserProcessPath = CombinePaths(localFolder, "Xilium.CefGlue.Demo.WinForms.exe");
    
            var settings = new CefSettings
            {
                BrowserSubprocessPath = browserProcessPath,
                SingleProcess = false,
                MultiThreadedMessageLoop = true,
                LogSeverity = CefLogSeverity.Disable,
                LogFile = "CefGlue.log",
            };
    

    Because I had changed the application output directory,so the "browserProcessPath" is invalid,then I modify the "browserProcessPath" to match the output directory so that the application can find it.

    But,I still can not understand the meaning and usage of "browserProcessPath "

提交回复
热议问题