到目前为止,我有这个,但它不工作。将bin文件夹的内容复制到一个特定的文件夹中
<Target Name="AfterBuild">
<Copy SourceFiles="bin\" DestinationFolder="C:\temp\appServer\"></Copy>
</Target>
到目前为止,我有这个,但它不工作。将bin文件夹的内容复制到一个特定的文件夹中
<Target Name="AfterBuild">
<Copy SourceFiles="bin\" DestinationFolder="C:\temp\appServer\"></Copy>
</Target>
试试这个:
<ItemGroup>
<BinFiles Include="bin\**\*.*"/>
</ItemGroup>
<Target Name="AfterBuild">
<Copy SourceFiles="@(BinFiles)"
DestinationFolder="C:\temp\appServer\"/>
</Target>
尝试使用通配符文件。
<Target Name="AfterBuild">
<Copy SourceFiles="bin\*.*" DestinationFolder="C:\temp\appServer\"></Copy>
</Target>
这给了相同的结果OP。 – harpo 2013-09-10 23:43:27