CefNet
https://github.com/CefNet/CefNet
CefNet is a .NET CLR binding for the Chromium Embedded Framework (CEF).
Getting Started
Since CefNet is a wrapper, you need to have the Chromium Embedded Framework somewhere on your development system (and redistribute it with your application).
(1) Download the Chromium Embedded Framework from: https://cef-builds.spotifycdn.com/index.html
Note: The major and minor version numbers of CEF and CefNet must match.
(2) Create an instance of the CefNetApplication and initialize it with your settings:
var settings = new CefSettings();
settings.NoSandbox = true;
settings.MultiThreadedMessageLoop = false; // or true
settings.WindowlessRenderingEnabled = true;
settings.LocalesDirPath = "path_to_cef/locales";
settings.ResourcesDirPath = "path_to_cef"; var app = new CefNetApplication();
app.Initialize("path_to_cef", settings);
(3) Add a WebView control to the form of your application.
(4) Run event loop, for example:
CefNetApplication.Run();
Note: You can use the event loop of the UI-framework you are using.
(5) You need to explicitly call CefNetApplication.Shutdown() from the main thread before you exit your application:
app.Shutdown();
app.Dispose();
For more information, see the sample applications.
Features
- Cross-platform
- Full managed code
Warning
The API of this project is not frozen and is subject to change.
Develop
- Install .NET Core SDK
- Install the DotAsm tool:
dotnet tool install -g DotAsm - Run
git clone https://github.com/CefNet/CefNet.git - Download a CEF package. See Directory.Build.props for the required CEF version.
- Extract all files into the cef/ directory.
- Copy cef/Resources/icudtl.dat into cef/Release/.
Migration to other CEF build
- Download a CEF package (standard or minimal).
- Extract all header files into the cef/include directory.
- Build and run CefGen.sln in debug mode to generate the generated files. Watch the output for errors.
- Build CefNet.sln
- If the build fails, make the necessary changes.
Similar projects and links
- CefGlue: An alternative .NET CEF wrapper built using P/Invoke.
- CefSharp: Another .NET CEF wrapper built using C++/CLI.
- CEF Bitbucket Project: The official CEF issue tracker
- The official CEF Forum: http://magpcss.org/ceforum/
- CEF API Docs: http://magpcss.org/ceforum/apidocs3/index-all.html
随机推荐
- pytorch入门 - VGG16神经网络
1. VGG16背景介绍 VGG-16是由牛津大学Visual Geometry Group(VGG)在2014年提出的深度卷积神经网络模型,它在当年的ImageNet大规模视觉识别挑战赛(ILSVR ...
- Seo工具使用与流量数据观察实践(中)
第12章.Seo工具使用与数据观察实践(中) 继上一节的SimilarWeb流量粗分析,我们已经选定了竞品,并且有了一个大致的用户画像和群体,接下来我们就进入细节的关键词和内容的分析. 那么这本节中, ...
- jsrpc+mitmproxy联动burp实现加密自动化
前言 在测试中发现,数据包中存在一个签名字段,将请求体进行修改后,服务器会302跳转到登录页 创建Jsrpc连接 根据关键字找到sign生成位置,并发现其加密的参数为请求体中"&se ...
- 【FAQ】HarmonyOS SDK 闭源开放能力 —Push Kit(13)
1.问题描述: 推送通知里的skills标签有什么用?不填写似乎不影响推送,以及推送的点击跳转操作 解决方案: 鸿蒙系统的推送通知中的skills标签主要用于指定接收推送的应用程序所支持的能力(Ski ...
- SQL 字符串逗号【,】分割去除重复
DROP FUNCTION GetDistinctcreate function GetDistinct(@str varchar(1000))returns varchar(1000)asBEGIN ...
- winrar无广告最新版
官网 https://www.dianjilingqu.com/688989.html 目前WinRAR有三个官网,winrar.com.cn,rarlab.com,win-rar.com. winr ...
- CF1918D Blocking Elements 题解
CF1918D Blocking Elements 如果你做过以下两道题目,那么这道题对你来说会简单得多. P1182 数列分段 Section II P2034 选择数字 由于题目要求最大值的最小值 ...
- Python 脚本最佳实践2025版
前文 可以直接把这篇文章喂给 AI, 可以放到 AI 角色设定里, 也可以直接作为提示词. 这样, 你只管提需求, 写脚本就让 AI 来. 概述 追求简洁和清晰:脚本应简单明了. 使用函数 (func ...
- opengl 学习 02
opengl 学习 之 02 lesson 简介 绘制三角形,然后加载shader,改变三角形的颜色 link http://www.opengl-tutorial.org/uncategorized ...
- 音频克隆:对话文本到口语对话生成MOSS-TTSD
之前介绍过几个音频克隆的可以项目:CosyVoice:https://www.cnblogs.com/cj8988/p/18975495IndexTTS:https://www.cnblogs.com ...