To easily copy empty folders, you can use the exec task to invoke RoboCopy. You can specify the / MIR argument, which will reflect the entire tree that you are trying to copy, including empty folders.
Example:
<Exec Command="robocopy "$(SourceLocation)\" "$(TargetLocation)\" /MIR" IgnoreExitCode="true" />
Similarly, you can use the exec task to invoke a compression utility that has a command line interface to get zip with empty folders.
paulj
source share