I have a two unit test projects, Tests.Common and Tests.Foobar. Tests.Foobar references Tests.Common as a dependency. Tests.Common includes content files that are used by both Tests.Common and Tests.Foobar. Those content files are copied to the output folder of Tests.Common when the project is built.
But I also want the content files to be copied to the output folder of Tests.Foobar when that project is built.
It seems like that was working previously, but it stopped working after we moved to SDK-style projects and dotnet build
(instead of Visual Studio build in TeamCity).
Do I have to use a custom build target or is there some .csproj setting I can use? It has to work with dotnet build
and not only in Visual Studio, as that's what we use in TeamCity.