The CopiedFiles parameter returns all files intended for copying. But given the fact that SkipUnchangedFiles is true, and ttask itself does not copy anything that can be seen on the command line (without copying the message). Why not, is CopiedFiles empty?
I need the CopiedFiles parameter to be filled only with files that were actually copied (because they were changed) in order to further copy these files to another folder. This should support the updated release folder, as well as extract only those files that should actually be transferred to the UAT / production server.
For reference, the copy task code I use is given below:
<Copy SkipUnchangedFiles = "true"
SourceFiles = "@ (cfile)"
DestinationFiles = "@ (cfile -> '$ (PublishDir) \% (Identity)')">
<Output
TaskParameter = "CopiedFiles"
ItemName = "Changed" />
</Copy>
<Message Text = "changed: @ (Changed)" Importance = "high" />
Is there a mistake in the copy task or is this the expected behavior.
source share