2011-08-30 30 views
3

我正在嘗試對源代碼WIX 3.6進行調試以及學習東西。WIX和NAnt:無法構建WIX源代碼

在執行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. 

我有框架4.0在我的本地安裝。此外,我通過註冊表搜索錯誤中提到的註冊表項並沒有找到。我使用的是NAnt的正確版本嗎?

+0

你說你已經更新了MAKE.BAT。你有什麼改變? –

+0

我更新了make.bat文件中的NAnt路徑。 –

回答

4

您是否擁有所有先決條件as described in the documentation

爲了全力打造維克斯,你必須具備以下框架和SDK安裝:

  • 楠(0.90或更高版本)
  • 從Windows SDK以下部件可用於Windows Server 2008和.NET框架3.5,Visual Studio 2008中,微軟Windows 7 SDK,和/或Visual Studio 2010:
    • x86和x64編譯器,頭文件和庫
    • IA64頭和librar Iies是可選的,但它們對於IA64定製操作支持是必需的
    • 如果您希望能夠構建優化的IA64二進制文件,則需要Windows SDK for Windows Server 2008和.NET Framework 3.5 SDK和Visual Studio 2008安裝;或者微軟Windows 7 SDK和Visual Studio 2010
    • HTML幫助SDK 1.4或更高版本[安裝程序文件或程序文件(x86)

缺少的註冊表鍵似乎是與VisualStudio SDK相關 - 您不需要基本的WiX。

如果您具備所有先決條件,請嘗試將-debug切換器傳遞給Nant以獲取更詳細的調試輸出。

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

+0

如果您使用VS2008 - 請嘗試:** Visual Studio 2008 SDK 1.1 ** @ http://www.microsoft.com/en-in/download/details.aspx?id=508 –