cefSharp anycpu

要解决CEFSharp在Anycpu架构下的问题,您需要在项目的第一个配置文件(如App.config)中添加代码:AppDomain.CurrentDomain.AssemblyResolve += Resolver。此步骤参照了已关闭的GitHub CEFSharp问题解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

You must add <CefSharpAnyCpuSupport>true</CefSharpAnyCpuSupport> to the first <PropertyGroup> in your project (e.g. .csproj file).

 AppDomain.CurrentDomain.AssemblyResolve += Resolver;

https://github.com/cefsharp/CefSharp/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aclosed+anycpu

 

Option 2
Add a dependency resolver, this is more complicated and needs to be hooked up before any calls to classes in the CefSharp.* namespaces. Here is one method of doing this, I'll add some helper classes in the future. It's important that LoadApp is not in-lined, so the calls to CefSharp are delayed long enough to hookup the Assembly Resolver

Add <CefSharpAnyCpuSupport>true</CefSharpAnyCpuSu
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值