问题
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