How to set a NAnt project's basedir to the current directory?

477 views Asked by At

I would like to use paths in multiple tasks without specifying the basedir attribute each time.

Unfortunately the following is not supported:

<project basedir="${directory::get-current-directory()}">
</project>
1

There are 1 answers

0
Youssef Shamass On

use (.) in like:

<project basedir=".">
</project>

so the basedir will be set to the directory of your build file.