Hi Team,
I am trying to list the contents of a folder (using Message task) before and after a copy task. But they are not getting re-initialised. Can you kindly let me know how to achieve this. I have a stimulation program which explains my scenario.
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="myInit"><ItemGroup><FileToCompile Include="C:\Users\Sudharsan\Desktop\src\**\*.*"/><DestFiles Include="C:\Users\Sudharsan\Desktop\Dest\**\*.*" /></ItemGroup><Target Name="myInit"><Message Text="Before %(DestFiles.Identity)" /><Copy SourceFiles="@(FileToCompile->'%(rootdir)%(directory)%(filename)%(extension)')" DestinationFolder="C:\Users\Sudharsan\Desktop\Dest" /><Message Text="After %(DestFiles.Identity)" /></Target></Project>
Thanks,
S.Sudharsan