[英]WinForm CefSharp
我只是尝试在新的winForm
应用程序上安装CefSharp
,我使用Nuget安装了最新版本,并完成了本文的所有步骤: https ://ourcodeworld.com/articles/read/173/how-to-use-cefsharp- 铬嵌入式框架-CSHARP-IN-A-的WinForms应用
Running on : "Any CPU"
Visual Studio 2013
CefSharp 69.0.0
当我运行应用程序时,出现此错误:
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
Additional information: Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies. The specified module could not be found.
这是代码:
var settings = new CefSettings();
Cef.Initialize(settings, performDependencyCheck: false, browserProcessHandler: null);
知道是什么问题吗?
编辑这是我的项目的app.config文件:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="x86"/>
</assemblyBinding>
</runtime>
</configuration>
在我们的案例中,这发生在我们无法安装Visual C ++运行时时。
在app.config文件中,请检查CelfSharp的dependentAssembly段。 如果有任何条目,请确保所添加参考的版本在有效范围内。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.