Check out example codes for ".net core copy file in folder to root". It will help you in understanding the concepts better.
Code Example 1
<ContentWithTargetPath Include="lib\some_file.dat">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>some_file.dat</TargetPath>
</ContentWithTargetPath>
Learn ReactJs, React Native from akashmittal.com