Running mklink in NAnt
Since there is not an executable for mklink, it took me a minute to figure a good solution to running mklink as a target in my build script.
The NAnt has an exec task that is used for running command line targets, but it requires an executable as its target. The command shell works in this situation, so I just need to exec the command shell, and have it execute mklink as its target.
Here is my NAnt target:
<exec program=”cmd” commandline=”/c mklink /d mobile\source\CustomControllers customizations\Controllers”/>