This is a cheetsheet to copy files to output directory in a MSBuild project file.
For example, this will copy settings.json to output directory when the one in current folder is newer.
<Project Sdk="Microsoft.NET.Sdk">
...
<ItemGroup>
<!-- Build action is `None`, and the option for copy to output directory could be `Always` or `PreserveNewest` -->
<None Include="./settings.json" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
</Project>