I have currently achieved the desired functionality using a small modified version of the answer in this post, which @Bayeni shared: fooobar.com/questions/59753 / ...
This currently works for me, but if there is a better way to do this, please let me know.
<ItemGroup Condition=" '$(Configuration)' == 'Debug' "> <Content Include="local.cfg"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </Content> </ItemGroup> <ItemGroup Condition=" '$(Configuration)' == 'Release' "> <Content Include="release.cfg"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </Content> </ItemGroup>
source share