I want to copy some files from one project to another project's published zip (don't ask). I've got
<Target Name="CopyFiles" AfterTargets="_CopyWebApplicationLegacy">
<ItemGroup>
<Files Include="$(WebProjectOutputContentDir)\*">
</Files>
</ItemGroup>
<MSBuild.ExtensionPack.Compression.Zip
TaskAction="AddFiles"
CompressFiles="@(Files)"
ZipFileName="$(OutDir)\_PublishedWebsites\UserInterface_Package\UserInterface.zip"
CompressPath="\(huge path)\(destination project)\PackageTmp"
RemoveRoot="\(huge path)\(source project)"/>
</Target>
This just dumps it to the zip's root folder, though. I need it in the PackageTmp folder.
I don't think this is possible with the extension itself, but I copy the file into the correct structure beforehand:
Then reference
PackageTmp\@(Files)
in theCompressFiles
call