CefSharp 3始终失败Cef.Initialize() [英] CefSharp 3 always failing Cef.Initialize()

查看:1402
本文介绍了CefSharp 3始终失败Cef.Initialize()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近尝试从CefSharp 1.25.7升级到最新版本(39.0.0-pre02)。我是通过NuGet获取文件的,但是我将它们分别复制到我的项目中,因为它们必须包含在我们的存储库中才能与其他开发人员共享。我相信我拥有所有文件(甚至还有新的 icudtl.dat 文件,该文件似乎替换了 icudt.dll )。

I recently tried making the jump from CefSharp 1.25.7 to the most recent build (39.0.0-pre02). I got the files through NuGet but I copied them into my project separately since they have to be included in our repository to share with other developers. I believe I got all of the files (even got the new icudtl.dat file that seems to replace icudt.dll).

我能够解决所有API更改并添加新文件等。它会生成,并且所有dll似乎都已解决,但由于某些原因 Cef.Initialize()(带有和不带有设置)始终会失败。我的输出窗口没有任何错误,只有错误的返回。关于我应该在哪里寻找问题的任何建议?我正在运行VS2010,我知道从源代码开始会遇到一些问题,但我认为使用二进制文件可以解决该问题。

I was able to get all of the API changes resolved and added the new files and such. It builds and all of the dlls seem to be resolved but for some reason Cef.Initialize() (with and without settings) always fails. There are no errors in my output window or anything, just a false return. Any suggestions as to where I should be looking for the problem? I'm running VS2010, which I know had some issues building from source but I thought that using the binaries would get around that.

推荐答案

听起来像你可能会失踪 CefSharp.BrowserSubprocess.exe 及其在您的 bin / 文件夹中的相关dll。在 Cef.Initialize()之后,如果您查看Windows任务管理器,应该会看到该进程已生成。

Sounds like you could be missing e.g. the CefSharp.BrowserSubprocess.exe and its dependent dlls in your bin/ folder. After Cef.Initialize() you should see that process spawned if you look in Windows Task manager. It's similar to all the Chrome.exe processes "That Google product variant" launches.

与CefSharp 1相比,它是一个完全不同的多进程野兽。参见 https://github.com/cefsharp/CefSharp/wiki/Versions 及其指针

Compared to CefSharp 1 it's a quite different multiprocess beast under the hood. See https://github.com/cefsharp/CefSharp/wiki/Versions and it's pointer to the nice upstream CEF project documentation.

要快速/更安全地起步,请使用 CefSharp.MinimalExample 回购作为参考。使用它的NuGet应该注意将所有相关文件复制到您的 bin / 文件夹中。确保您在VS2010中安装的NuGet是最新的。

To quickly/more safely get off the ground use the CefSharp.MinimalExample repo as your reference. Its NuGet use should take care of copying all relevant files to your bin/ folder. Make sure your NuGet install in VS2010 is up to date.

这篇关于CefSharp 3始终失败Cef.Initialize()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆