Verschieben Sie Dotnet -DLLs in einen anderen Ordner

<ItemGroup>
    <FilesToMove Include="PathToFiles\*.dll"/>
  </ItemGroup>

  <Target Name="MoveFiles" AfterTargets="Build" Condition=" '$(Configuration)' == 'Release' ">
    <Message Text="Move Files to the dependencies folder when I build for release"></Message>
    <Move
    SourceFiles="@(FilesToMove)"
    DestinationFolder="PathToFiles\dependencies"
    />
  </Target>
Reza Ahmadi