Use RuntimeIdentifierGraphPath if available in runtime copy of Microsoft.NET.CrossGen...
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Fri, 25 Aug 2023 22:11:09 +0000 (15:11 -0700)
committerGitHub <noreply@github.com>
Fri, 25 Aug 2023 22:11:09 +0000 (15:11 -0700)
Co-authored-by: Elinor Fung <elfung@microsoft.com>
src/tasks/Crossgen2Tasks/Microsoft.NET.CrossGen.targets

index a2912cc..c539d33 100644 (file)
@@ -443,7 +443,7 @@ Copyright (c) .NET Foundation. All rights reserved.
     <ResolveReadyToRunCompilers RuntimePacks="@(ResolvedRuntimePack)"
                                 Crossgen2Packs="@(ResolvedCrossgen2Pack)"
                                 TargetingPacks="@(ResolvedTargetingPack)"
-                                RuntimeGraphPath="$(BundledRuntimeIdentifierGraphFile)"
+                                RuntimeGraphPath="$([MSBuild]::ValueOrDefault('$(RuntimeIdentifierGraphPath)', '$(BundledRuntimeIdentifierGraphFile)'))"
                                 NETCoreSdkRuntimeIdentifier="$(NETCoreSdkRuntimeIdentifier)"
                                 EmitSymbols="$(PublishReadyToRunEmitSymbols)"
                                 ReadyToRunUseCrossgen2="$(PublishReadyToRunUseCrossgen2)"