It sounds a little strange, but it seems the <include> task does not work properly when you set the xmlns attribute for the <project> element.
I have a build script with xmlns attribute set to something, and a number of <include> tasks. <project name="CRM BETA" default="compile" xmlns="http://nant.sf.net/schemas/nant.xsd"> <include buildfile="Usuario.build" /> <include buildfile="App.build" /> etc... <target name="compile" depends="compile.Usuario,compile.App ... > The targets upon which the compile target depends are defined into the included files. When I run the build script, NAnt complains: C:\projetos\CRM\BETA>nant -buildfile:nant.build NAnt 0.85 (Build 0.85.2031.0; nightly; 24/7/2005) Copyright (C) 2001-2005 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///C:/projetos/CRM/BETA/nant.build Target framework: Microsoft .NET Framework 1.1 Target(s) specified: build BUILD FAILED Target 'compile.Usuario' does not exist in this project. It is used from target 'compile'. But when I remove the xmlns attribute, it works fine. Though this is not a terrible problem, it can take some hours before someone find out what is going wrong with the build script. Regards, Celio Cidral Junior WEG Eletric http://www.weg.com.br ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users