From the NAnt help page (http://nant.sourceforge.net/release/latest/help/fundamentals/targets.html):
NAnt tries to execute the targets in the depends attribute in the order they appear from left to right. It is possible that a target can get executed earlier when an earlier target depends on it:
<target name="A"/> <target name="B" depends="A" /> <target name="C" depends="B" /> <target name="D" depends="C,B,A" /
Suppose we want to execute target D. From its depends attribute, you might think that first target C, then B and then A is executed. Wrong! C depends on B, and B depends on A, so first A is executed, then B, then C, and finally D.
Since C depends on B and B depends on A, shouldn't the depends attribute of target (D) should be C only?
If I would replace depends of D with "C" alone, what would be the order of execution? Would it alter from the previous order?