What is the difference between DependsOnTargets
and AfterTargets
?
I can not distinguish these two.
There are two mainly differences:
First: Targets specified in the dependsOnTargets attribute are executed before those in AfterTargets.
Second: If one of the targets specified in AfterTargets attribute got executed this target get also executed after(I mean the target where you specify the AfterTargets attribute), which is not true for those in DependsOnTargets.