Mueva las dlls de Dotnet a otra carpeta
<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