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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -