Using NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007), and the nant/bin directory in my path, and this build file:
<?xml version="1.0" encoding="utf-8"?> <project name="test" basedir="." xmlns="http://nant.sf.net/release/0.86-beta1/nant.xsd"> <echo message="Runtime Framework: ${framework::get-runtime-framework()}"/> <echo message="Target Framework: ${framework::get-target-framework()}" /> <echo message="MSBuild path: ${framework::get-tool-path('msbuild.exe')}"/> </project> With the NAnt.exe.config net-3.5 framework element's tool-paths element set like this, unchanged from when it was installed: <tool-paths> <directory name="${path::combine(sdkInstallRoot, 'bin')}" /> <directory name="${path::combine(installRoot, 'v3.5')}" /> <directory name="${path::combine(installRoot, 'v2.0.50727')}" /> </tool-paths> I get these results: NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007) Copyright (C) 2001-2007 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///C:/temp/test.build Target framework: Microsoft .NET Framework 3.5 [echo] Runtime Framework: net-3.5 [echo] Target Framework: net-3.5 [echo] MSBuild path: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\msbuild.exe BUILD SUCCEEDED However, if I change the tool-paths to this: <tool-paths> <directory name="${path::combine(sdkInstallRoot, 'bin')}" /> <directory name="${path::combine(installRoot, 'v2.0.50727')}" /> <directory name="${path::combine(installRoot, 'v3.5')}" /> </tool-paths> I get this result: NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007) Copyright (C) 2001-2007 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///C:/temp/test.build Target framework: Microsoft .NET Framework 3.5 [echo] Runtime Framework: net-3.5 [echo] Target Framework: net-3.5 [echo] MSBuild path: C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe BUILD SUCCEEDED According to the release notes, the sentence "The directories configured in the <tool-paths> node of the current target framework will be scanned in the order in which they are defined" suggests that this is contrary to the expected result. According to tracker item 1845802 http://sourceforge.net/tracker/index.php?func=detail&aid=1845802&group_i d=31650&atid=402868, closed on 12/7, this was fixed for the .86 beta. Or am I overlooking something? Thanks, Brad ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users