After about winform packaging, display CefSharp.core.dll not find a solution specified module.

Why do I get an error about "Could not load file or assembly  CefSharp.Core.dll 'or one of its dependencies. The specified module could not be found. "When I try to run applications based on the CefSharp? It compiles successfully, but does not run? It running on my development machine, although an exception is thrown, when I copy it to another computer?

Please see the  official explanation

According to interpretation is, we need to check whether a file folder after packaging these files, or manually copy.

When referring to finished cef, re-build the project, you will get two folders:

 

 These two files basically contain all the necessary documents cef, everything is ready, now officially packed it.

1. Create a Setup Project

 

 I am using Visual Studio Installer, not the junior partner to install your own extensions.

 

 Then change the target architecture x64

2. Import primary output items

Select the right setup view> File System, and then select Application Folder 

Right in the blank space Add> Project Output

 

 Choose your project configuration to Release Any CPU.

 

 Imported main output, nothing else should have three cef related components, first be ruled out, the current output can not contain any cef project.

 

 Select 3, fixed property of the form, the Exclude changed to True 


You can exclude these files.

Now the two documents mentioned at the beginning of the clip to the new position, then copied to the packaging project. Direct copy, where I will be prompted to deny access to all, I will copy it to a new location and then copied.

Here will not CefSharp.core.dll not find the specified module errors occur again.

3. Add a static file

Some add a project reference static files, such as pictures, documents. . Wait.

4. Create a shortcut

 

 右键主输出点击 create shortcut 。。选项 ,

吧快捷方式剪切到用户桌面文件夹, User’s Desktop 里,可以设置图标。

重新生成,就可以了。在重新生成时,请不要删除 文章开头提到的两个文件夹,否则生成会出错。

 

 安装后显示正常,不在出现错误。

 

 

 

Guess you like

Origin www.cnblogs.com/chenzhongtian/p/11948991.html