【问题标题】:WiX Installer not building on Windows 10WiX 安装程序不在 Windows 10 上构建
【发布时间】: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


【解决方案1】:

WiX 4.0 是非常实验性的,目前不适合生产使用。返回到您可以找到的最新稳定版 WiX 3.xx。不要在生产中使用每周发布。

我似乎记得这方面的一个错误,但不确定。我现在会安装 .NET 2.0/3.5。

【讨论】:

  • 是的,我真的不想使用 4.0,只是想看看它是否解决了我的问题。问题是我无法在我的系统上安装 .NET 2.0/3.5!!这些方法都不起作用,我尝试了每种方法的几种变体。开始认为我需要全新安装。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2020-05-22
  • 1970-01-01
  • 2018-09-15
  • 1970-01-01
  • 2016-05-09
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多