2010-11-18 177 views

回答

7

试试这个:

<ItemGroup> 
    <BinFiles Include="bin\**\*.*"/> 
</ItemGroup> 

<Target Name="AfterBuild"> 
    <Copy SourceFiles="@(BinFiles)" 
      DestinationFolder="C:\temp\appServer\"/> 
</Target> 
1

看起来像MSBuild复制任务不需要一个目录为SourceFiles,而是一个文件列表复制。

退房MSDN文章这里一个简单的例子:

MSDN Link

0

尝试使用通配符文件。

<Target Name="AfterBuild"> 
    <Copy SourceFiles="bin\*.*" DestinationFolder="C:\temp\appServer\"></Copy> 
</Target> 
+0

这给了相同的结果OP。 – harpo 2013-09-10 23:43:27

相关问题