How do I use the MSBuild Copy task? Also, it is seems to be making target as lowercase in the filename - is this right?
<Copy SourceFiles="@(DATA)" DestinationFiles="@(DATA->'$(MSBuildProjectDirectory)\BuildWin32\data\%(RecursiveDir)%(Fi开发者_如何学JAVAlename)%(Extension)')"/>
I mean, the part "%(RecursiveDir)%(Filename)%(Extension)" become lower case in the final file name and folder name.
Try to think that %(RecursiveDir) is like an array.
So if you have DIRA with files file1.xml and files2.xml and DIRB with file file3.xml (obtained with something similar to C:\dir***.xml)... the copy task will make a substitution for each dir & file of the array and copy all the wanted files.
精彩评论