I have a custom target (a group of copy tasks, among others) in my build that I need to call a couple of times to effect change in different places. However, this only runs the first time it is called, after which TFS build skips the said target.
The process goes as follows:
<!-- Copy some files to another location -->
<CallTarget Targets="CopyFiles"></CallTarget>
...
<!-- Copy the above files to yet another location -->
<CallTarget Targets="CopyFiles"></CallTarget>
In the build log, it is seen that the target "CopyFiles" is skipped the second time it is called:
Target "CopyLicenseManagerFiles" skipped. Previously built successfully.
Why is this happening? Is there a way to force the target (or any custom target I write) to run multiple times?