gpt4 book ai didi

WIX 和 NAnt : Unable to build WIX source code

转载 作者:行者123 更新时间:2023-12-04 13:38:12 25 4
gpt4 key购买 nike

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

最佳答案

您是否具备所有先决条件 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)]

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

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

关于WIX 和 NAnt : Unable to build WIX source code,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7244383/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com