CefSharp 3 Always Fails Cef.Initialize ()

I recently tried to make the transition from CefSharp 1.25.7 to the most recent build (39.0.0-pre02). I received the files through NuGet, but I copied them to my project separately, as they must be included in our repository for sharing with other developers. I believe that I have all the files (even there is a new icudtl.dat file that seems to replace icudt.dll ).

I was able to eliminate all API changes and added new files, etc. It builds, and all the DLL files seem to be resolved, but for some reason Cef.Initialize() (with and without settings) always fails. There are no errors in my output window, just a false return. Any suggestions as to where I should look for the problem? I am running VS2010, which, as I know, has some source-related problems, but I thought using binaries would get around this.

+2
source share
1 answer

It seems like you are missing, for example. CefSharp.BrowserSubprocess.exe and its dependent CefSharp.BrowserSubprocess.exe in your bin/ folder. After Cef.Initialize() you should see that the process has arisen if you look in the Windows task manager. It is similar to all processes Chrome.exe "This Google Product Option" launches.

Compared to CefSharp 1, this is a completely different multiprocessor beast under the hood. See https://github.com/cefsharp/CefSharp/wiki/Versions and a pointer to good CEF project documentation up.

To quickly / safely get off the ground, use CefSharp.MinimalExample relay as a reference. Its use of NuGet should take care of copying all the relevant files to your bin/ folder. Make sure your NuGet installation in VS2010 is updated.

+2
source

Source: https://habr.com/ru/post/1213322/


All Articles