MSBuild Copy task ignores (%RecursiveDir) -
i have subdirectories in build output files copied root destination directory without applying %recursivedir
.
<propertygroup> <slnpath>.</slnpath> <binpath>.\projname\</binpath> <destination>..\..\deploy\projname\master</destination> <propertygroup> <itemgroup> <defaultexclude include="$(slnpath)\.\**\*.svn-base"/> <defaultexclude include="$(slnpath)\.\**\.svn\**"/> <defaultexclude include="$(slnpath)\.\**\.git\**"/> <defaultexclude include="$(slnpath)\.\**\.hg\**"/> <defaultexclude include="$(slnpath)\.\**\*.log"/> <defaultexclude include="$(slnpath)\.\**\log\*.*" /> </itemgroup> <createitem include="$(slnpath)\$(binpath)bin\**\*.*" exclude="@(defaultexclude)"> <output itemname="filestocopy" taskparameter="include"/> </createitem> <copy sourcefiles="@(filestocopy)" destinationfiles="@(filestocopy->'$(destination)\bin\%(recursivedir)%(filename)%(extension)')" />
why doesn't work?
surprisingly, copying source directory below in same script works:
<createitem include="$(slnpath)\deployoverride\all\**\*.*" exclude="@(defaultexclude)"> <output itemname="filestocopy" taskparameter="include" /> </createitem> <copy sourcefiles="@(filestocopy)" destinationfiles="@(filestocopy->'$(destination)\bin\%(recursivedir)%(filename)%(extension)')" />
Comments
Post a Comment