Search code examples
.netwindows-764-bitnant

NAnt on Windows 7 64 bit - Error setWinVer.6.1


I'm getting some strange errors with NAnt on my 64-bit Win 7 Box.

Targeting a .NET 2.0 application. I have VS 2005 and VS 2010 installed.

This build file works perfect on Xp 32 bit.

When I run it I get:

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.

Any thoughts on how to rectify this?


Update

I right clicked NAnt.exe and changed it to run in Compatibility mode (Win XP Sp3) and it works, however now it's having a hard time reading from the registry - which is odd). Not the best way, but it seems to have some effect, will keep this updated.


Solution

  • Found that Seeing the NAnt.exe properties to run the program as Window XP SP3 compatible was the only way to get this done without upgrading.