I have the following set of files with XBuild: <ScriptFiles Include="Server/scripts/**/*.js" />
I then copy all of it over to another directory: <Copy SourceFiles="@(ScriptFiles)" DestinationFiles="@(ScriptFiles->'$(BuildDir)/WWW/scripts/%(RecursiveDir)%(Filename)%(Extension)')" /> However, what I want to do is copy `*.js`, and copy `/yui/*.*`. What I tried doing is: <ScriptFiles Include="Server/scripts/**/*.js;Server/scripts/yui/**/*" /> However, what this does is flatten the `/yui/` directory and put all of yui's files directly into `/WWW/scripts`. Is there a better way to do this? PS: Also posted on http://stackoverflow.com/questions/8569222/recursively-copy-all-files-with-msbuild - but no answers. _______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list