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

517 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 best solutions below

0
On

use (.) in like:

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

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