diff --git a/eng/Subsets.props b/eng/Subsets.props
index 5aac9db362e7c4..875befff0222d5 100644
--- a/eng/Subsets.props
+++ b/eng/Subsets.props
@@ -361,7 +361,6 @@
$(CoreClrProjectRoot)tools\AssemblyChecker\AssemblyChecker.csproj" Category="clr" Condition="'$(DotNetBuildSourceOnly)' != 'true'"/>
-
@@ -529,13 +528,17 @@
+
+
+
+
+
-
diff --git a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj
index ffab9cbb1289b1..37840d9429c4fb 100644
--- a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj
+++ b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj
@@ -1,18 +1,28 @@
$(RuntimeBinDir)ilc/
- $(PackageRID)
+ $(OutputRID)
+
+
+ $(PackageRID)
-
+
+ true
+
+
+
+
+
$(RuntimeBinDir)ilc-published/
true
$(ROOTFS_DIR)
- true
+ true
true
true
true
@@ -88,15 +98,6 @@
+ DependsOnTargets="Publish" />
-
-
-
-
-
-
-
diff --git a/src/coreclr/tools/aot/crossgen2/crossgen2_publish.csproj b/src/coreclr/tools/aot/crossgen2/crossgen2_publish.csproj
index aebad93eae08e0..5d2bf85bfd117d 100644
--- a/src/coreclr/tools/aot/crossgen2/crossgen2_publish.csproj
+++ b/src/coreclr/tools/aot/crossgen2/crossgen2_publish.csproj
@@ -8,7 +8,7 @@
true
- $(PackageRID)
+ $(OutputRID)
true
$(NetCoreAppCurrent)
true