【发布时间】:2016-05-02 23:37:30
【问题描述】:
我无法在 Windows 10 企业版的 VS2013 中构建合并模块。从一整天的搜索来看,这似乎与没有安装.Net3.5有关。
我已经尝试了所有建议的不同方法,但 .Net3.5 无法安装在我的系统上,而且似乎有很多人遇到同样的问题。
我实际的 WiX 错误信息如下;
Error 1 The "CreateProjectReferenceDefineConstants" task could not be loaded from the assembly C:\Program Files (x86)\WiX Toolset v4.0\bin\WixTasks.dll. Could not load file or assembly 'Microsoft.Build.Utilities, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> 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.
C:\Program Files (x86)\WiX Toolset v4.0\bin\wix.targets 709
我开始使用我们在其他项目中使用的 v3.8,但对 v3.10、v3.11 和 v4.0 也有同样的问题。
有谁知道 WiX 是否仍然依赖于 .Net3.5,以及是否有任何后续的不稳定版本放弃了这个?
我尝试加入 WiX 安装程序电子邮件论坛并向其发送电子邮件,但我的问题从未发布过,而且几乎没有能力找出原因。我确实收到了其他人的各种电子邮件问题,所以我知道我已经加入了该组。有更好的社区问题论坛吗?电子邮件组方法在今天似乎已经过时了。
感谢您的帮助。
干杯
戴夫
【问题讨论】:
-
我在使用 Visual Studio 2015 和 .NET Framework 2.0 项目的 Windows 10 PC 上遇到了同样的问题。最后,我学会了如何(轻松地)使用candle.exe 和light.exe,因此我正在使用Notepad++ 编辑wxs 文件,并使用命令提示符创建MSI 文件。
标签: wix windows-installer windows-10