3

我正在尝试使用WIX 3.6的源代码来调试一些东西并学习一些东西。

在执行make.bat(存在于 WIX 源的根文件夹中)文件时,首先我找不到 NAnt。所以我下载了 NAnt并更新了 make.bat 文件。再次执行文件时,我收到此错误

NAnt 0.91 (Build 0.91.3881.0; alpha2; 8/17/2010)
Copyright (C) 2001-2010 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///D:/wix36-sources/wix.build
Target framework: Microsoft .NET Framework 4.0
Target(s) specified: inc

[readregistry] Registry Path Not Found! - key='Software\Microsoft\VisualStudio\VSIP\10.0\';hive='Microsoft.Win32.RegistryHive[]';
[readregistry] Registry Path Not Found! - key='Software\Microsoft\VisualStudio\VSIP\10.0\';hive='Microsoft.Win32.RegistryHive[]';
 [property] Target framework changed to "Microsoft .NET Framework 2.0".
 [property] Read-only property "dir.hhw" cannot be overwritten.
 [property] Read-only property "hhw-found" cannot be overwritten.

BUILD FAILED - 2 non-fatal error(s), 2 warning(s)

D:\wix36-sources\wix.build(65,4):
Build file 'D:\wix36-sources\test\wixtests.build' does not exist.

我在本地安装了 .Net framework 4.0。我还通过注册表搜索了错误中提到的注册表项,但没有找到。我使用的是正确版本的 NAnt 吗?

4

2 回答 2

4

您是否具备文档中描述的所有先决条件?

为了完全构建 WiX,您必须安装以下框架和 SDK:

  • NAnt(0.90 或更高版本)
  • 适用于 Windows Server 2008 和 .NET Framework 3.5、Visual Studio 2008、Microsoft Windows 7 SDK 和/或 Visual Studio 2010 的 Windows SDK 中的以下组件:
    • x86 和 x64 编译器、头文件和库
    • IA64 头文件和库是可选的,但它们是 IA64 自定义操作支持所必需的
    • 如果您希望能够构建优化的 IA64 二进制文件,则需要安装适用于 Windows Server 2008 的 Windows SDK 和 .NET Framework 3.5 SDK 和 Visual Studio 2008;或 Microsoft Windows 7 SDK 和 Visual Studio 2010。
    • HTML 帮助 SDK 1.4 或更高版本 [安装到 Program Files 或 Program Files (x86)]

缺少的注册表项似乎与 VisualStudio SDK 有关 - 对于基本的 WiX,您不需要它。

如果您具备所有先决条件,请尝试将-debug开关传递给 Nant 以获得更详细的调试输出。

于 2011-08-31T06:06:03.797 回答
1

要解决这个问题:

[readregistry] 未找到注册表路径!- key='Software\Microsoft\VisualStudio\VSIP\10.0\';hive='Microsoft.Win32.RegistryHive[]';

[readregistry] 未找到注册表路径!- key='Software\Microsoft\VisualStudio\VSIP\10.0\';hive='Microsoft.Win32.RegistryHive[]';

如果您使用 Visual Studio 2010 SP1,则需要Visual Studio 2010 SP1 SDK

于 2012-06-24T00:53:44.700 回答