NAnt home setting in the NAnt Runner


as part of our build process we check out the tools we use for the build, e.g. NAnt. The problem I've run into is that the 'NAnt home' setting in the NAnt Runner is not relative to the checkout directory, rather it is relative to the agent's working directory. Is there a variable I can use when specifying the path for NAnt that would be replaced with the checkout directory?



Edited by: Damien Jones on Sep 5, 2008 9:30 PM


not that it solves your problem directly - but as an alternative..

we put the tools on the build agents when we install the agents, and simply use variables in the agent conf files to define where nant is for that machine. Then we reference that variable in the build config. This way no matter where nant is on each agent machine, the build works. The agent tells us where nant is.


We're looking at VMs for our agent machines in which case this would be a reasonable option. As long as we only have to make changes in one place I'll be happy, otherwise we are bound to miss one at some point.


I have added an issue to the tracked for that problem at
Please watch/vote for it.

Please try using as a reference to build working directory.


Could you please attach full build log of the build where it has failed to locate nant?
What was the settings for NAnt home?
What is relative path to nant checkout folder.



Please sign in to leave a comment.