Mova as DLLs do DOTNET para outra pasta
<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