WPF包装器用于自定义CEF Nuget软件包

发布于 2025-01-22 02:07:29 字数 1274 浏览 1 评论 0原文

我重新编译了 cef ,其中一些启用了的功能,并将其作为 nuget软件包成功地编译为强> CEF_Binaries (仅x64-目标平台)。

但是我不知道如何制作WPF包装器,所以我可以在项目中使用它 (就像Nuget软件包CEFSHARP.WPF 一样)

对不起,如果这是一个愚蠢的问题,但是在花费了数小时来编译CEF之后,我已经脑死了,我已经

您在上面看到的软件包是我本地编译的Nuget软件包

更新#1 ::我从新的CEFSDK

repo :: https://github.com/cefsharp/cefsharp/cefsharp/cefsharp/blob/cefsharp/98/

  1. /代码>

      $ cefversion = '98 .2.1'
     
  2. 我使用此build.ps1用这些参数来编译我的nuget软件包

      param(param(
    [验证(“ VS2022”,“ VS2019”,“仅nupkg-”,“ update-build-version”)]]
    [参数(位置= 0)] 
    [string] $ target =“只有nupkg-”,
    [参数(位置= 1)]
    [字符串] $ version =“ 98.2.1”,
    [参数(位置= 2)]
    [字符串] $ assemblyversion =“ 98.2.1”,
    [参数(位置= 3)]
    [验证(“ NetFramework”,“ NetCore”,“ NetFramework452”,“ NetCore31”)]]
    [字符串] $ targetFrameWork =“ NetCore31”,
    [参数(位置= 4)]
    [字符串] $ buildarches =“ x64”
    )
    Set -StrictMode  - 最新;
    $ errorActionPreference =“ stop”;
     

I recompiled CEF with some features enabled and also successfully compiled it as Nuget package, as you can see below now I can browse my custom compiled Cef_Binaries (x64 only - target platform).

But I have no idea how to make WPF wrapper, so I can use this inside my project
(Just like nuget package CEFSharp.WPF)

Sorry if it's a silly question but after spending hours on compiling CEF, I'm brain-dead already

enter image description here

Packages you are seeing above are my local compiled nuget packages

Update #1:: I successfully made Nuget Package from my new CefSDK

Repo:: https://github.com/cefsharp/CefSharp/blob/cefsharp/98/

  1. After running UpdateNugetPackages.ps1

    $CefVersion = '98.2.1'
    
  2. I used this build.ps1 to compile my NuGet packages with these params

    param(
    [ValidateSet("vs2022","vs2019", "nupkg-only", "update-build-version")]
    [Parameter(Position = 0)] 
    [string] $Target = "nupkg-only",
    [Parameter(Position = 1)]
    [string] $Version = "98.2.1",
    [Parameter(Position = 2)]
    [string] $AssemblyVersion = "98.2.1",
    [Parameter(Position = 3)]
    [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")]
    [string] $TargetFramework = "NetCore31",
    [Parameter(Position = 4)]
    [string] $BuildArches = "x64"
    )
    Set-StrictMode -version latest;
    $ErrorActionPreference = "Stop";
    

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文