我正在尝试用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 Framework4.0。另外,我在注册表中搜索了错误中提到的注册表项,但没有找到。我是否使用了正确的NAnt版本?
发布于 2011-08-31 06:06:03
你有所有的先决条件如文件所述吗?
为了全面构建WiX,必须安装以下框架和SDK:
缺少的注册表项似乎与VisualStudio SDK有关--对于基本WiX,您不需要这样做。
如果您有所有先决条件,请尝试将-debug开关传递给Nant以获得更详细的调试输出。
发布于 2012-06-24 00:53:44
要解决这个问题:
未找到!- key='Software\Microsoft\VisualStudio\VSIP\10.0\';hive='Microsoft.Win32.RegistryHive[]'; 未找到!- key='Software\Microsoft\VisualStudio\VSIP\10.0\';hive='Microsoft.Win32.RegistryHive[]';
如果使用Visual 2010 SP1,则需要2010 SP1 SDK
https://stackoverflow.com/questions/7244383
复制相似问题