我在自己的構建中有一個自定義目標(一組副本任務),我需要調用幾次才能在不同的地方進行更改。然而,這隻在第一次被調用時運行,之後TFS將跳過所述目標。自定義目標在TFS構建中第一次運行後被跳過
的過程如下:
<!-- Copy some files to another location -->
<CallTarget Targets="CopyFiles"></CallTarget>
...
<!-- Copy the above files to yet another location -->
<CallTarget Targets="CopyFiles"></CallTarget>
在生成日誌,可以看出,目標「CopyFiles」跳過它被稱爲第二次:
Target "CopyLicenseManagerFiles" skipped. Previously built successfully.
這是爲什麼發生了什麼?有沒有辦法強制目標(或我寫的任何自定義目標)多次運行?