From: Tomáš Rylek Date: Thu, 21 May 2020 22:49:14 +0000 (+0200) Subject: Stop emitting weird intermediate folder artifacts/tests/artifacts (#36833) X-Git-Tag: submit/tizen/20210909.063632~7832 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e30997a8b22710166942e21b94fd2f219eb5b54;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Stop emitting weird intermediate folder artifacts/tests/artifacts (#36833) The logic in dir.common.props for relativizing test directories doesn't work well for the generated XUnit wrapper csproj files as these are generated under artifacts\tests. Relativizing this directory against src\coreclr\tests\src ended up with a weird sequence that ended up duplicating the tests/artifacts folder level. I have fixed this by explicitly passing the root directory for relativization for the XUnit wrapper projects. Thanks Tomas Fixes: #1655 --- diff --git a/src/coreclr/tests/dir.common.props b/src/coreclr/tests/dir.common.props index 97f6400..d31d607 100644 --- a/src/coreclr/tests/dir.common.props +++ b/src/coreclr/tests/dir.common.props @@ -12,7 +12,7 @@ $(TargetOS).$(TargetArchitecture).$(Configuration) - $(MSBuildThisFileDirectory)src + $(MSBuildThisFileDirectory)src $([MSBuild]::MakeRelative($(TestSrcDir), $(MSBuildProjectDirectory)))\$(MSBuildProjectName)\