Using NAnt-0.91-Alpha2
In adopting NAnt for several build tasks, because of its obvious influences from Apache Ant, I am surprised to find that the basedir attribute on the project does not appear to be codified into an actual useable parameter.
The code below generates the property exception: "Propery evaluation failed."
<?xml version="1.0"?>
<project name="Foo" default="build" basedir=".">
<include buildfile="${basedir}/foo.xml" />
...
</project>
In Ant the basedir attribute is a useable property in string substitutions. Phing--a PHP-based Ant derivative--supports the handling of the basedir property the same way as Ant. It seems only natural NAnt should support this as well.
Is there a reason NAnt doesn't support the basedir value as a property?
I don't know why this is not present anymore. There was a property called nant.project.basedir but this is deprecated. see http://nant.sourceforge.net/release/latest/help/fundamentals/properties.html#built-in-properties
To get this directory you might use ${project::get-base-directory} see http://nant.sourceforge.net/release/latest/help/functions/project.get-base-directory%28%29.html