From c11fa2be22891658a849b9320664057a7c433487 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Tue, 9 May 2023 19:20:19 +0200 Subject: [PATCH] Update ILCompiler paths to handle PublishAotUsingRuntimePack=true --- .../Microsoft.NETCore.Native.Publish.targets | 4 +-- .../Microsoft.NETCore.Native.Unix.targets | 10 +++---- .../Microsoft.NETCore.Native.targets | 27 ++++++++++++++----- 3 files changed, 28 insertions(+), 13 deletions(-) diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Publish.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Publish.targets index 6f672918b33e06..be1fbde77efc9d 100644 --- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Publish.targets +++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Publish.targets @@ -70,8 +70,8 @@ Text="Add a PackageReference for '$(_hostPackageName)' to allow cross-compilation for $(_targetArchitecture)" /> - - + + - - - - - + + + + + diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets index fbcadcc71b5977..afa1cc1a66b9fc 100644 --- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets +++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets @@ -126,26 +126,41 @@ The .NET Foundation licenses this file to you under the MIT license. + + <_NETCoreAppFrameworkReference Include="@(ResolvedFrameworkReference)" Condition="'%(ResolvedFrameworkReference.RuntimePackName)' == 'Microsoft.NETCore.App.Runtime.NativeAOT.$(RuntimeIdentifier)'" /> + + $(IlcHostPackagePath)\tools\ $(RuntimePackagePath)\sdk\ - $(RuntimePackagePath)\framework\ - $(RuntimePackagePath)\framework\ + $(RuntimePackagePath)\framework\ + <_NETCoreAppRuntimePackPath>%(_NETCoreAppFrameworkReference.RuntimePackPath)/runtimes/$(RuntimeIdentifier)/ + $(_NETCoreAppRuntimePackPath)\native\ + $(RuntimePackagePath)\framework\ + $(IlcFrameworkNativePath) + $(IlcSdkPath) $(RuntimePackagePath)\mibc\ - - + + + + + + + - - + + + +