What is the difference between 'DependsOnTargets' and 'AfterTargets'?

前端 未结 6 1060
孤街浪徒
孤街浪徒 2020-12-24 04:38

What is the difference between DependsOnTargets and AfterTargets? I can not distinguish these two.

6条回答
  •  隐瞒了意图╮
    2020-12-24 05:22

    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.

提交回复
热议问题