<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="PathToFilesdependencies"
/>
</Target>