diff --git a/eng/testing/tests.singlefile.targets b/eng/testing/tests.singlefile.targets
index 1cfa4ba1cdecab..e4a246d6ef1c06 100644
--- a/eng/testing/tests.singlefile.targets
+++ b/eng/testing/tests.singlefile.targets
@@ -34,7 +34,7 @@
true
-
+
diff --git a/src/coreclr/nativeaot/BuildIntegration/BuildFrameworkNativeObjects.proj b/src/coreclr/nativeaot/BuildIntegration/BuildFrameworkNativeObjects.proj
index 6469964c0170a1..d3ef3ec15cdbbc 100644
--- a/src/coreclr/nativeaot/BuildIntegration/BuildFrameworkNativeObjects.proj
+++ b/src/coreclr/nativeaot/BuildIntegration/BuildFrameworkNativeObjects.proj
@@ -10,7 +10,7 @@
true
-
+
-
win
osx
@@ -26,38 +25,34 @@
$(OSHostArch)
runtime.$(OSIdentifier)-$(IlcHostArch).Microsoft.DotNet.ILCompiler
+
true
-
-
RunResolvePackageDependencies
ImportRuntimeIlcPackageTarget
SetupProperties
-
-
-
-
-
-
-
-
+
+
+ <_PackageReferenceExceptILCompiler Include="@(PackageReference)" Exclude="Microsoft.DotNet.ILCompiler" />
+ <_ILCompilerPackageReference Include="@(PackageReference)" Exclude="@(_PackageReferenceExceptILCompiler)" />
+
+ @(_ILCompilerPackageReference->'%(Version)')
+
+
-
-
- @(ResolvedILCompilerPack->'%(PackageDirectory)')
- @(ResolvedILCompilerPack->'%(PackageDirectory)')
- >@(ResolvedILCompilerPack->'%(PackageDirectory)')
-
+
+
+
-
-
- %(PackageDefinitions.ResolvedPath)
- %(PackageDefinitions.ResolvedPath)
+
+ @(ResolvedILCompilerPack->'%(PackageDirectory)')
+ @(ResolvedTargetILCompilerPack->'%(PackageDirectory)')
+ @(ResolvedILCompilerPack->'%(PackageDirectory)')
diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.props b/src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.props
index e883245ee0f7cf..da6b72b12d7ce1 100644
--- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.props
+++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.props
@@ -10,10 +10,11 @@ Copyright (c) .NET Foundation. All rights reserved.
***********************************************************************************************
-->
-
+
+ true
- $(MSBuildThisFileDirectory)Microsoft.DotNet.ILCompiler.targets
+ $(MSBuildThisFileDirectory)Microsoft.DotNet.ILCompiler.SingleEntry.targets
diff --git a/src/coreclr/tools/aot/crossgen2/crossgen2.csproj b/src/coreclr/tools/aot/crossgen2/crossgen2.csproj
index 42f192a3f123fd..8696352abc03e8 100644
--- a/src/coreclr/tools/aot/crossgen2/crossgen2.csproj
+++ b/src/coreclr/tools/aot/crossgen2/crossgen2.csproj
@@ -42,7 +42,7 @@
-
-
+