trying to copy a whole folder, but when i do this:
The best solution for me was to use the magic XCOPY
as I had to copy all files and sub directories
$(ProjectDir)\lib
$(ProjectDir)\..\..\Something\lib
$(SolutionDir)\Something\lib
This build event is fired once build succeed, it cleans the FilesDestination
folder then it copies all files with directory structure from FilesSource
to FilesDestination
and then it delete the FilesSource
folder to keep everything "bien propre" :)
NOTE
For FilesDestination
, make sure you use the Condition attribute or remove it to have the copy process to its end