错误:无法从程序集中加载“ResolveWixReferences”任务

5

WiX工具集v3.11.1

WiX工具集Visual Studio 2015扩展程序

请尝试按照以下文章将WiX项目集成到日常构建中。 http://wixtoolset.org/documentation/manual/v3/msbuild/daily_builds.html

WixSetup64bit.wixproj位于 C:\Work\TC\WixSetup64bit\

wix311-binaries.zip已解压至 C:\Work\TC\wix\v3.11\

如何解决以下错误?

严重程度 代码 说明 项目 文件 行 抑制状态 错误 The "ResolveWixReferences" task could not be loaded from the assembly C:\Work\TC\wix\v3.11..\wix\v3.11\wixtasks.dll. Could not load file or assembly 'file:///C:\Work\TC\wix\wix\v3.11\wixtasks.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. WixSetup64bit C:\Work\TC\wix\v3.11\wix2010.targets 735

重新编译后,错误更改为 严重程度 代码 说明 项目 文件 行 抑制状态 错误 The "ResolveWixReferences" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\MSBuild\14.0\bin" directory. WixSetup64bit C:\Work\TC\wix\v3.11\wix2010.targets 735

这是WixSetup64bit.wixproj WixSetup64bit.wixproj


你有运气吗?好奇这是否是我预期之外的问题。 - Stein Åsmul
2个回答

3

0

之前的答案: 不太确定,而且它并不是百分之百匹配的,但或许可以查看这个答案: WiX工具集:在VS2017中创建一个简单的WiX项目会出错:“CreateProjectReferenceDefineConstants”任务未找到

本质上:您的构建计算机上是否安装了.NET Framework 3.5

  1. 如果没有,请尝试添加它:Win键 + 点击 R => appwiz.cpl => Enter => 打开或关闭 Windows 功能。选中".NET Framework 3.5"并安装。

    • 重要提示:现在请运行 Windows 更新以检查安全更新。
  2. 或者-显然-如果您处于带有标准化软件的管理环境中,则从分发人员获取正确的部署包。


似乎相关问题与位数(32位路径,64位路径)以及对旧版WiX版本或类似版本的错误路径有关。在此处检查。虽然没有进行深入研究,但如果您遇到了这个问题,这是一个好的开始。 - Stein Åsmul

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接