In our build process, for each project we use Post Build events to copy our executable files into a separate deployment directory. That works just peachy, but the problem i
For Visual C++ projects, you need to add the files to the "Extensions to Delete On Clean" section under the "General" project configuration properties. Even though it claims to want extensions, it's actually using globs and will happily accept full paths and expand MSBuild variables. This worked for me:
$(ProjectDir)\deployment\*.*
I'm not sure if you can remove directories this way, but it can at least get the files.