WiX installer project: CefSharp.Core.dll could not be loaded, file not found

眉间皱痕 提交于 2019-12-24 21:55:02

问题


I am working on a windows application on c# visual studio, i have set up a WiX project for the installer and have added CefSharp, CefSharp.Core, CefSharp.Wpf references to it also.

However, upon building, it throws an error that the extension

'..\packages\CefSharp.Common.57.0.0\CefSharp\x86\CefSharp.Core.dll' could not be loaded because of the following reason: Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies. The specified module could not be found. InstallProj candle.exe 0

The file exists in that directory but for some reason it cannot be loaded. I have tried referencing both x64 and x86 but to no avail. But when I unload the WiX project and build, the error does not occur build successfully.

I have browsed a lot of similar questions where this dll could not be loaded but none helped fix my issue. I have tried reloading the dependencies

Edit:

I tried removing the references and uninstalling the CefSharp.Common and CefSharp.Wpf packages from InstallProj. It still tries to load the dll with the same error.


回答1:


As written in the comments, I downgraded from WiX toolset v4.0 to v3.11 and fixed it in this case



来源:https://stackoverflow.com/questions/46966789/wix-installer-project-cefsharp-core-dll-could-not-be-loaded-file-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!