第一步NuGet里安装CefSharp.Wpf,如下图
第二步修改项目属性,平台改为x86或x64,不能AnyCPU,如图
第三步修改解决方案,添加如下代码
<ItemGroup>
<!-- TODO: These updates are currently required because CefSharp.Wpf specifies
<Private>false</Private>, which means these libraries will not be specified in
the .deps.json file, and so the CoreCLR wouldn't load these. -->
<Reference Update="CefSharp">
<Private>true</Private>
</Reference>
<Reference Update="CefSharp.Co