Here is an example web deployment project that scripts this task in a .wdproj file:
<Target Name="AfterBuild"> <MakeDir Directories="$(OutputPath)\compressed" /> <Exec Command="java -jar c:\yuicompressor-2.2.5\build\yuicompressor-2.2.5.jar --charset UTF-8 styles.css -o compressed/styles.css" WorkingDirectory="$(OutputPath)" /> <Exec Command="move /Y .\compressed\* .\" WorkingDirectory="$(OutputPath)" /> <RemoveDir Directories="$(OutputPath)\sql" /> <Exec Command="c:\7zip-4.4.2\7za.exe a $(ZipName).zip $(OutputPath)\*" /> </Target>
This will allow you to delete the folder.
(I suspect that if you do not want to copy the folder at all, the solution file will be the place to indicate this, although I should not have used this.)
Chris source share