Hi,
I have the following item group:
<ItemGroup>
<ReleaseFiles Include="MyApp\*.ashx"/>
<ReleaseFiles Include="MyApp\*.config"/>
<ReleaseFiles Include="MyApp\bin\*.dll"/>
<ReleaseFiles Include="MyApp\bin\*.exe"/>
<ReleaseFiles Include="MyApp\bin\*.pdb"/>
<ReleaseFiles Include="MyApp\bin\*.config"/>
</ItemGroup>
and the following copy target:
<Copy SourceFiles="@(ReleaseFiles)" DestinationFiles="@(ReleaseFiles->'\\$(DeploymentMachine)\C$\Program Files\MyApp\%(RecursiveDir)%(Filename)%(Extension)')" />
but the problem is that the bin directory is not being preserved (all the files end up in the top level directory).
Please note that I need to use the same item group for creating the zipfile:
<Zip Files="@(ReleaseFiles)" ZipFileName="$(server)\$(BUILD_NUMBER).$(BUILD_VCS_NUMBER)\myApp.zip" WorkingDirectory="MyApp"/>
which works fine. How can I get the copy to work as well?