开发者

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

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜