簡體   English   中英

WinForm CefSharp

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM