diff --git a/src/coreclr/tests/runtest.proj b/src/coreclr/tests/runtest.proj
index eeca687c4055e17a886259fd4601b8ff320f198d..983223b109469df9513b59aaadff6254b863ec7d 100644
--- a/src/coreclr/tests/runtest.proj
+++ b/src/coreclr/tests/runtest.proj
@@ -338,8 +338,6 @@ namespace $([System.String]::Copy($(Category)).Replace(".","_").Replace("\","").
- $(RuntimeId)
- $(TestNugetRuntimeId)
$(CoreClrPackageVersion)
diff --git a/src/coreclr/tests/src/Common/build_against_pkg_dependencies/build_against_pkg_dependencies.csproj b/src/coreclr/tests/src/Common/build_against_pkg_dependencies/build_against_pkg_dependencies.csproj
index 088528579a8e119af7d3584d1f5dedf9ea068b8d..f3ae3050fe5336af5fd4eade1a3fc5b0ae11a290 100644
--- a/src/coreclr/tests/src/Common/build_against_pkg_dependencies/build_against_pkg_dependencies.csproj
+++ b/src/coreclr/tests/src/Common/build_against_pkg_dependencies/build_against_pkg_dependencies.csproj
@@ -28,7 +28,7 @@
netcoreapp2.1
.NETCoreApp
$(PackageTargetFallback);portable-net45+win8
- win-arm;win-x64;win-x86;win7-x86;win7-x64;win10-arm64;ubuntu.14.04-x64;ubuntu.16.04-x64;ubuntu.16.10-x64;osx.10.12-x64;osx-x64;centos.7-x64;rhel.7-x64;debian.8-x64;fedora.24-x64;opensuse.42.1-x64;linux-x64
+ $(TargetRid)
true
false
diff --git a/src/coreclr/tests/src/Common/targeting_pack_ref/targeting_pack_ref.csproj b/src/coreclr/tests/src/Common/targeting_pack_ref/targeting_pack_ref.csproj
index a7828fedff74ca9b22a5ac64e308b1629f05b245..5f6e901bfe7c2da1581a2e3e81dfa3836aaedb86 100644
--- a/src/coreclr/tests/src/Common/targeting_pack_ref/targeting_pack_ref.csproj
+++ b/src/coreclr/tests/src/Common/targeting_pack_ref/targeting_pack_ref.csproj
@@ -16,7 +16,7 @@
netcoreapp1.1
.NETCoreApp
$(PackageTargetFallback);dnxcore50;portable-net45+win8
- win-arm;win7-x86;win7-x64;ubuntu.14.04-x64;ubuntu.16.04-x64;ubuntu.16.10-x64;osx.10.12-x64;centos.7-x64;rhel.7-x64;debian.8-x64;fedora.24-x64
+ $(TargetRid)
true
false
diff --git a/src/coreclr/tests/src/Common/test_dependencies/test_dependencies.csproj b/src/coreclr/tests/src/Common/test_dependencies/test_dependencies.csproj
index cf1576a0f428b703cdd3b7cf413230fa85b60f83..0e9426929f23e8ba9925c50173ef033fceb65256 100644
--- a/src/coreclr/tests/src/Common/test_dependencies/test_dependencies.csproj
+++ b/src/coreclr/tests/src/Common/test_dependencies/test_dependencies.csproj
@@ -27,7 +27,7 @@
netcoreapp2.1
.NETCoreApp
$(PackageTargetFallback);dnxcore50;netcoreapp1.1;portable-net45+win8
- win-arm;win-x64;win-x86;win7-x86;win7-x64;win-arm64;win-arm;win7-arm64;win7-arm;ubuntu.14.04-x64;ubuntu.16.04-x64;ubuntu.16.10-x64;osx.10.12-x64;osx-x64;centos.7-x64;rhel.7-x64;debian.8-x64;fedora.24-x64;linux-x64
+ $(TargetRid)
true
false
diff --git a/src/coreclr/tests/src/Common/test_runtime/test_runtime.csproj b/src/coreclr/tests/src/Common/test_runtime/test_runtime.csproj
index 5838715850cbff9571fea1c2ea53f856b6c042eb..05d99861321ffe49e134d7155be7f7ea22979c79 100644
--- a/src/coreclr/tests/src/Common/test_runtime/test_runtime.csproj
+++ b/src/coreclr/tests/src/Common/test_runtime/test_runtime.csproj
@@ -30,7 +30,7 @@
netcoreapp2.1
.NETCoreApp
$(PackageTargetFallback);dnxcore50;portable-net45+win8
- win-arm;win-x64;win-x86;win7-x86;win7-x64;win-arm64;win-arm;win7-arm64;win7-arm;ubuntu.14.04-x64;ubuntu.16.04-x64;ubuntu.16.10-x64;osx.10.12-x64;osx-x64;centos.7-x64;rhel.7-x64;debian.8-x64;fedora.24-x64;linux-x64
+ $(TargetRid)
true
false
diff --git a/src/coreclr/tests/src/TestWrappersConfig/TestWrappersConfig.csproj b/src/coreclr/tests/src/TestWrappersConfig/TestWrappersConfig.csproj
index cab63a4a81bd9b4e00004873f9cfedfb127e170b..ddc8781364b5aa2d055de6e22c231a443c1ffabe 100644
--- a/src/coreclr/tests/src/TestWrappersConfig/TestWrappersConfig.csproj
+++ b/src/coreclr/tests/src/TestWrappersConfig/TestWrappersConfig.csproj
@@ -28,7 +28,7 @@
netcoreapp1.1;net45
.NETCoreApp
$(PackageTargetFallback);dnxcore50;portable-net45+win8
- win7-x86;win7-x64;ubuntu.14.04-x64;ubuntu.16.04-x64;ubuntu.16.10-x64;osx.10.12-x64;centos.7-x64;rhel.7-x64;debian.8-x64;fedora.24-x64
+ $(TargetRid)
true
false
diff --git a/src/coreclr/tests/src/dir.props b/src/coreclr/tests/src/dir.props
index a6da62227ff6ab603f82dc4f803175feb08db67f..ee2d7a31d70863f6ef99150f9d4a0cb2c7eb3ea3 100644
--- a/src/coreclr/tests/src/dir.props
+++ b/src/coreclr/tests/src/dir.props
@@ -65,6 +65,11 @@
+
+ $(__RuntimeId)
+ $(TestNugetRuntimeId)
+
+
true
C#