将bin文件夹的内容复制到特定文件夹中

use*_*348 2 msbuild

到目前为止,我有这个,但它不起作用.

  <Target Name="AfterBuild">
        <Copy SourceFiles="bin\" DestinationFolder="C:\temp\appServer\"></Copy>
  </Target>
Run Code Online (Sandbox Code Playgroud)

Jul*_*rau 7

试试这个 :

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

<Target Name="AfterBuild">
    <Copy SourceFiles="@(BinFiles)" 
          DestinationFolder="C:\temp\appServer\"/>
</Target>
Run Code Online (Sandbox Code Playgroud)