Tests.csproj) that contains an nlog.config file which needs to be copied to its output directory on build. Being a test project, it references another project (App.csproj) in my solution that also contains an nlog.config file. The nlog.config files have different content so they are not redundant. In both nlog.config files have CopyToOutputDirectory set to PreserveNewest.Tests.csproj and inspect the resulting msbuild.binlog file, I see double writes for Tests\bin\Release\nlog.config. I suspect/hope this is due to App.csproj's nlog.config being copied into Tests\bin\Release, and then Tests.csproj's nlog.config being copied and overwriting it.<ExcludeAssets>contentfiles</ExcludeAssets>. Is there a similar directive I can use for project references? ExcludeAssets didn't work.