tags:

views:

11

answers:

1

How using MSBuild Copy task? and Making target as lowercase filename?

<Copy SourceFiles="@(DATA)" DestinationFiles="@(DATA->'$(MSBuildProjectDirectory)\BuildWin32\data\%(RecursiveDir)%(Filename)%(Extension)')"/>

I mean, the part "%(RecursiveDir)%(Filename)%(Extension)" become lower case file name and folder name?

A: 

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.

cad

related questions