Friday, September 05, 2008

Error with Nant

It seems that the following error message can be fixed by create a new registry entry. I am not sure why it is missing.

Solution:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework]
"sdkInstallRootv2.0"="C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727"


Error message:
C:\wiki>c:\nant\bin\NAnt.exe svn.build
NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007)
Copyright (C) 2001-2007 Gerry Shaw
http://nant.sourceforge.net


BUILD FAILED

Failed to initialize the 'Microsoft .NET Framework 2.0' (net-2.0) target framewo
rk.

    Property evaluation failed.
Expression: ${path::combine(sdkInstallRoot, 'bin')}
                            ^^^^^^^^^^^^^^

        Property 'sdkInstallRoot' has not been set.

For more information regarding the cause of the build failure, run the build aga
in in debug mode.

Try 'nant -help' for more information