cefsharp中cef.pak文件的作用是什么? [英] What is the purpose of the cef.pak file in cefsharp?

查看:1065
本文介绍了cefsharp中cef.pak文件的作用是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

常见问题解答中,它指出您应该禁用软件包加载:

In the FAQs of CefSharp, it states that you should disable Package Loading:

var settings = new CefSharp.CefSettings 
{
    PackLoadingDisabled = true
};




对于生产模式应用程序通常是可以的

which is normally OK for a production-mode application

我有一个问题,在特定网站上的下拉框周围出现红色边框。如果我设置 PackLoadingDisabled = false 并确保 cef.pak 文件位于文件夹中(此cef.pak为随CefSharp nuget软件包一起分发。我包括其他任何.pak文件(locates / en-US.pak除外),然后可以解决此问题。

I have an issue where on a particular website a red border is appearing around a drop-down box. If I set PackLoadingDisabled = false and ensure that the cef.pak file is in the folder (This cef.pak is distributed with the CefSharp nuget package. I am not including any other .pak file except locates/en-US.pak) then this fixes the issue.

我的问题是,此cef.pak文件起什么作用?

我查看了 CEF3自述文件,它表明它是可选的,但尚不清楚此Pack的用途。在将其包含在软件发行版中之前,我需要确切了解它的用途。

I've looked at the CEF3 Readme and it shows that it is optional, but it isn't very clear on what purpose this Pack serves. Before I go and include it in my software distribution I need to know exactly what it is for.

我可以在发行版中启用包加载吗?

推荐答案

pak文件用于可打开的开发人员工具。

pak files are used for the developer tools that can be turned on.

我们选择不发货。唯一出现的是,无论我们使用什么包禁用加载值,都会创建一个 locales文件夹。

We choose NOT to ship the pak. The only that arises is that a 'locales' folder is created no matter what pack loading disabled value we use. The localesdirpath similarly has no effect.

locales文件夹和红色滚动条-都是cefSharp从cef继承的,上游的bug也是如此。好消息是您可以使用一些JavaScript修复红色滚动条,这意味着您仍然可以使用当前的铬代码。

Both the locales folder and the red scroll bars - are inherited by cefSharp from cef, so are upstream bugs. The good news is you can fix the red scroll bars with some javascript and means you can still use the current chromium code.

查找:::-webkit-scrollbar /: :-webkit-scrollbar-thumb / ::-webkit-scrollbar-thumb:vertical:hover / ::-webkit-scrollbar-thumb:vertical:active等...

Look for ::-webkit-scrollbar / ::-webkit-scrollbar-thumb / ::-webkit-scrollbar-thumb:vertical:hover / ::-webkit-scrollbar-thumb:vertical:active etc...

这篇关于cefsharp中cef.pak文件的作用是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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