NAnt - how to get the directory path of the included script
问题 I have a common NAnt script (containing some common targets and constants) that I include in many other NAnt scripts like this: <include buildfile="<path>\common.build" verbose="true" /> Calling scripts are in various folders. In this included script I need to read a file from the same directory, where included script resides. "Current directory" is set to the directory of the calling script, not included one. How can I get the directory path of the included script? If I use the following