简体   繁体   中英

WinForm CefSharp

I just tried to install CefSharp on a new winForm application, i install the latest version with Nuget and done all the steps by this article: 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

When i run the application i get this error:

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.

This is the code:

var settings = new CefSettings();
Cef.Initialize(settings, performDependencyCheck: false, browserProcessHandler: null);

Any idea what is the problem?

EDIT This is the app.config file of my project:

<?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 ++运行时时。

In app.config file , please check dependentAssembly segment for CelfSharp. If it has any entry, make sure that the version of added reference be in valid range.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM