WIX 和 NAnt:无法构建 WIX 源代码

发布于 2024-12-02 06:14:21 字数 1234 浏览 1 评论 0原文

我正在尝试使用 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 版本正确吗?

I am trying my hands on source code of WIX 3.6 to debug something as well as learn something.

On executing make.bat (present in root folder of WIX source) file, first i got NAnt not found. So I downloaded NAnt and updated make.bat file. On executing the file again I am getting this error

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.

I have .Net framework 4.0 installed on my local. Also I searched through registry for the registry key mentioned in the error and didn't found. Am I using right version of NAnt?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

小巷里的女流氓 2024-12-09 06:14:21

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

为了完全构建 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 Help SDK 1.4 或更高版本[安装到 Program Files 或 Program Files (x86)]

缺少的注册表项似乎与 VisualStudio SDK 相关 - 对于基本功能,您不需要它维克斯。

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

Do you have all of the prerequisites as described in the documentation?

In order to fully build WiX, you must have the following Frameworks and SDKs installed:

  • NAnt (0.90 or later)
  • The following components from the Windows SDK for Windows Server 2008 and .NET Framework 3.5, Visual Studio 2008, Microsoft Windows 7 SDK, and/or Visual Studio 2010:
    • x86 and x64 compilers, headers and libraries
    • IA64 headers and libraries are optional, but they are necessary for IA64 custom action support
    • If you want to be able to build optimized IA64 binaries, you'll need both the Windows SDK for Windows Server 2008 and .NET Framework 3.5 SDK AND Visual Studio 2008 installed; or the Microsoft Windows 7 SDK AND Visual Studio 2010.
    • HTML Help SDK 1.4 or higher [installed to Program Files or Program Files (x86)]

The missing registry key seems to be related to the VisualStudio SDK - you don't need this for basic WiX.

If you have all of the prerequisites, try passing the -debug switch to Nant for more detailed debugging output.

递刀给你 2024-12-09 06:14:21

为了解决这个问题:

[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< /a>

To solve this problem:

[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[]';

If you used Visual Studio 2010 SP1 you need Visual Studio 2010 SP1 SDK

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文