代码之家  ›  专栏  ›  技术社区  ›  YosiFZ

WinForm CefSharp

  •  0
  • YosiFZ  · 技术社区  · 7 年前

    我只是试着安装 CefSharp 在一个新的 winForm 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);
    

    编辑

    <?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>
    
    2 回复  |  直到 7 年前
        1
  •  1
  •   Shane Burke    7 年前

    在我们的例子中,当我们安装VisualC++运行时失败。

        2
  •  0
  •   Alireza Memarian    7 年前

    如果有任何条目,请确保添加引用的版本在有效范围内。