C# Winform 运行异常 CefSharp.core.dll 找不到指定的模块

致终将努力的我们 2020-04-16

C# Winform开发中使用了CefSharp,之前在VS2012中运行很正常,今天换了一台Windows XP 打开VS2010 运行时,发生异常:System.IO.FileNotFoundException;Coloud not load file or assembly ‘CefSharp.core.dll’ or one of its dependencies,找不到指定的模块。
File name:’CefSharp.Core.dll‘。

经常会出现找不到 vcruntime 的 问题,这里提供最新版和多版本在一个包里的下载地址,

官方地址:

https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

Visual Studio 2015, 2017 and 2019
Download the Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019. The following updates are the latest supported Visual C++ redistributable packages for Visual Studio 2015, 2017 and 2019. Included is a baseline version of the Universal C Runtime see MSDN for details.

x86: vc_redist.x86.exe  下载地址:https://download.visualstudio.microsoft.com/download/pr/c8edbb87-c7ec-4500-a461-71e8912d25e9/99ba493d660597490cbb8b3211d2cae4/vc_redist.x86.exe
x64: vc_redist.x64.exe  下载地址:https://download.visualstudio.microsoft.com/download/pr/9e04d214-5a9d-4515-9960-3d71398d98c3/1e1e62ab57bbb4bf5199e8ce88f040be/vc_redist.x64.exe
ARM64: vc_redist.arm64.exe   下载地址:https://download.visualstudio.microsoft.com/download/pr/56048768-6a58-41ac-af01-9e14a365298b/1180474b310106dcdc8d36c4196e320c/vc_redist.arm64.exe
Note Visual C++ 2015, 2017 and 2019 all share the same redistributable files.

For example, installing the Visual C++ 2019 redistributable will affect programs built with Visual C++ 2015 and 2017 also. However, installing the Visual C++ 2015 redistributable will not replace the newer versions of the files installed by the Visual C++ 2017 and 2019 redistributables.

This is different from all previous Visual C++ versions, as they each had their own distinct runtime files, not shared with other versions.

相关推荐