我刚刚尝试在一个新的CefSharp应用程序上安装winForm,我用Nuget安装了最新的版本,并完成了本文中的所有步骤:https://ourcodeworld.com/articles/read/173/how-to-use-cefsharp-chromium-embedded-framework-csharp-in-a-winforms-application
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>发布于 2019-01-09 21:25:34
在本例中,当我们安装VisualC++运行时失败时,就发生了这种情况。
发布于 2019-01-09 16:39:35
在app.config文件中,请检查dependentAssembly段中的CelfSharp。如果它有任何条目,请确保添加引用的版本在有效范围内。
https://stackoverflow.com/questions/54114477
复制相似问题