本文介绍了WiX安装程序项目:无法加载CefSharp.Core.dll,找不到文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在c#visual studio上的Windows应用程序上工作,我为安装程序设置了一个WiX项目,并添加了CefSharp,CefSharp.Core,CefSharp.Wpf引用。

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

该文件存在于该目录中,但由于某种原因无法加载。我尝试同时引用x64和x86,但无济于事。但是,当我卸载WiX项目并进行构建时,构建成功并不会发生该错误。

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.

我浏览了很多类似的问题,这些问题无法加载此dll,但是没有一个问题可以解决我的问题。我尝试重新加载依赖项

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

我尝试删除引用并从卸载CefSharp.Common和CefSharp.Wpf软件包。 InstallProj

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.

推荐答案

正如注释中所写,我从WiX工具集v4降级了。 0到v3.11,并在这种情况下进行了修复

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

这篇关于WiX安装程序项目:无法加载CefSharp.Core.dll,找不到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-04 16:11