Reputation: 10332
So far I have this,but it's not working.
<Target Name="AfterBuild">
<Copy SourceFiles="bin\" DestinationFolder="C:\temp\appServer\"></Copy>
</Target>
Upvotes: 2
Views: 4084
Reputation: 171
Looks like the MSBuild Copy task doesn't take a directory for SourceFiles, but instead a list of files to copy.
Check out the MSDN article here for a simple example:
Upvotes: 1
Reputation: 49970
Try this :
<ItemGroup>
<BinFiles Include="bin\**\*.*"/>
</ItemGroup>
<Target Name="AfterBuild">
<Copy SourceFiles="@(BinFiles)"
DestinationFolder="C:\temp\appServer\"/>
</Target>
Upvotes: 7
Reputation: 1900
Try using a file wildcard.
<Target Name="AfterBuild">
<Copy SourceFiles="bin\*.*" DestinationFolder="C:\temp\appServer\"></Copy>
</Target>
Upvotes: 0