.net - WiX:无法从程序集加载 "ReadRegistry"任务 [...] 该程序集由比当前加载的运行时更新的运行时构建

标签 .net visual-studio visual-studio-2008 wix

我使用 Visual Studio 2008 开发了一个针对 .NET Framework 3.5 版的应用程序。现在我想使用 WiX 为应用程序创建一个安装程序。我安装了 WiX 工具包,然后在与我的项目相同的解决方案中创建了一个 WiX 项目。但是,由于某些版本依赖性问题(似乎),我什至无法构建由 Visual Studio 创建的空模板。

我是 WiX 的新手,所以我只能推测其中的原因。我已经尝试在我的开发机器(它是 v4,顺便说一句)上重新安装框架,但没有帮助。

完整错误信息:

C:\Programme\MSBuild\Microsoft\WiX\v3.x\wix200x.targets(499,5): error MSB4062:
The "ReadRegistry" task could not be loaded from the assembly
C:\Programme\MSBuild\..\WiX Toolset v3.7\bin\WixTasks.dll.
Could not load file or assembly
'file:///C:\Programme\WiX Toolset v3.7\bin\WixTasks.dll'
or one of its dependencies. This assembly is built by a runtime newer than the
currently loaded runtime and cannot be loaded. Confirm that the <UsingTask>
declaration is correct, and that the assembly and all its dependencies are available.

顺便说一下,错误消息中的文件路径是正确的,所有这些文件都存在。从我从消息中得到的信息来看,WiX 尝试加载的 dll 太新了,无法用于我的安装程序,它使用的是旧的(框架?)版本。该消息还指向一个 <UsingTask>元素,但是我在相关文件中的任何地方都找不到这样的元素...

提前感谢任何帮助

最佳答案

这是 WiX v3.7 RC 中的一个已知错误,已在本周的版本 v3.7.1126.0 中修复。

关于.net - WiX:无法从程序集加载 "ReadRegistry"任务 [...] 该程序集由比当前加载的运行时更新的运行时构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13600619/

相关文章:

.net - 在 MVVM 中创建 ViewModel 的最佳方法

c# - 具有多个组分隔符的 Int32.TryParse

php - 一些 php 脚本(需要逻辑帮助)

c++ - 编译C++程序导致 "Fatal Error LNK1104"

windows - 旧的 Visual Studio 2017/MFC 应用程序仍然有一个非常旧的 "look"到 Windows

visual-studio-2008 - VS 2008,MFC:添加OnInitDialog-怎么样?

.net - SqlCommand.ExecuteReader() 什么时候返回 null?

visual-studio - NUnit 在单独的项目中测试,相同的解决方案

visual-studio-2008 - makedepend 等效于与 nmake 一起使用吗?

c# - 如何根据浏览器在同一页面上嵌入 32 位或 64 位 ActiveX 控件?