.net Windows 7上的NAnt 64位错误设置Winver.6.1

.net Windows 7上的NAnt 64位错误设置Winver.6.1,.net,windows-7,64-bit,nant,.net,Windows 7,64 Bit,Nant,我的64位Win 7 Box上的NAnt出现了一些奇怪的错误 以.NET 2.0应用程序为目标。我安装了VS2005和VS2010 这个构建文件在xp32位上工作得非常好 当我运行它时,我得到: C:\Apps\BLAH\nant.exe -buildfile:BC_STUFF.build BuildAndInstall "-D:SkipSandCastle=true" NAnt 0.85 (Build 0.85.2478.0; release; 14/10/2006) Copyr

我的64位Win 7 Box上的NAnt出现了一些奇怪的错误

以.NET 2.0应用程序为目标。我安装了VS2005和VS2010

这个构建文件在xp32位上工作得非常好

当我运行它时,我得到:

C:\Apps\BLAH\nant.exe -buildfile:BC_STUFF.build BuildAndInstall "-D:SkipSandCastle=true"       
NAnt 0.85 (Build 0.85.2478.0; release; 14/10/2006)
Copyright (C) 2001-2006 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///C:/Apps/BLAH/BC_STUFF.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: BuildAndInstall 

  [sysinfo] Setting system information properties under sys.*
  [sysinfo] Property could not be created for environment variable 'CommonProgramFiles(x86)' : Property name 'sys.env.CommonProgramFiles(x86)' is invalid.
  [sysinfo] Property could not be created for environment variable 'ProgramFiles(x86)' : Property name 'sys.env.ProgramFiles(x86)' is invalid.
   [script] Scanning assembly "fdii67ui" for extensions.
   [script] Scanning assembly "qv6p_-ys" for extensions.
   [script] Scanning assembly "abosgmew" for extensions.

winVer:


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

Target 'setWinVer.6.1' does not exist in this project.

Total time: 0.7 seconds.
有没有关于如何纠正这种情况的想法


更新


我右键单击NAnt.exe并将其更改为在兼容模式下运行(Win XP Sp3),它可以工作,但是现在它很难从注册表读取数据(这很奇怪)。这不是最好的方法,但似乎有一些效果,可以保持更新。

看看你的
winVer
目标在做什么。看起来它正在基于Windows版本形成目标名称并调用该目标。在本例中,它是
setWinVer.6.1
,并且该目标在您的项目中不存在。

一些一般性建议:您正在运行的NAnt版本0.85已超过五年。我不希望这个版本在Win 7 64位这样的现代环境中能够顺利运行。如果你已经解决了你的问题,你一定要考虑一下,如果你已经解决了你的问题,我不会感到惊讶。

< P>发现,看到NANT.EXE属性来运行程序是与Window XP SP3兼容的,这是不升级的唯一方法。

< P>我也遇到了同样的问题。 我在项目构建文件(.nant)中添加了一行,如下所示,从而使其正常工作



感谢您的快速回复。我已经搜索了我们所有的构建文件,但没有找到任何winVer。我还在我们的项目目录中进行了文本搜索,没有找到任何winVer。这似乎是一件很难做到的事情。我们计划在删除bizTalk 2006后进行升级,因为届时我们需要重新编写构建脚本。
<project name="">
<property name="" value="" />
<target name="setWinVer.6.1"></target>