From d37bcaf1cc55f4dd34ddad48ad726fc413c1a25b Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Fri, 13 Dec 2024 13:33:17 -0800 Subject: [PATCH 1/5] In VMR builds, a host-SDK crossgen will always be available. --- eng/tools/GenerateFiles/Directory.Build.targets.in | 2 +- .../src/Microsoft.AspNetCore.App.Runtime.Composite.sfxproj | 2 -- .../App.Runtime/src/Microsoft.AspNetCore.App.Runtime.sfxproj | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/eng/tools/GenerateFiles/Directory.Build.targets.in b/eng/tools/GenerateFiles/Directory.Build.targets.in index 88f09a8c8914..66976bd6cd56 100644 --- a/eng/tools/GenerateFiles/Directory.Build.targets.in +++ b/eng/tools/GenerateFiles/Directory.Build.targets.in @@ -108,7 +108,7 @@ ${MicrosoftNETCoreAppRuntimeVersion} - $(TargetRuntimeIdentifier) + $(NETCoreSdkRuntimeIdentifier);$(TargetRuntimeIdentifier) diff --git a/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.Composite.sfxproj b/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.Composite.sfxproj index 68d28614376b..7d75aa7f8caf 100644 --- a/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.Composite.sfxproj +++ b/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.Composite.sfxproj @@ -15,8 +15,6 @@ LatestPatch false - - false true false diff --git a/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.sfxproj b/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.sfxproj index d3160de441ac..533c6840f9e0 100644 --- a/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.sfxproj +++ b/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.sfxproj @@ -15,8 +15,6 @@ LatestPatch false - - false true false From ba39a92ed04c9ef42ce8e578d26c6a4a704e7106 Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Mon, 16 Dec 2024 11:50:58 -0800 Subject: [PATCH 2/5] Add workaround for the fact that runtime pack RIDs influence crossgen2 lookup (when they should only influence old crossgen lookup) --- eng/tools/GenerateFiles/Directory.Build.targets.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/tools/GenerateFiles/Directory.Build.targets.in b/eng/tools/GenerateFiles/Directory.Build.targets.in index 66976bd6cd56..535ad48b08f3 100644 --- a/eng/tools/GenerateFiles/Directory.Build.targets.in +++ b/eng/tools/GenerateFiles/Directory.Build.targets.in @@ -80,7 +80,8 @@ ${MicrosoftNETCoreAppRuntimeVersion} - $(TargetRuntimeIdentifier) + + $(NETCoreSdkRuntimeIdentifier);$(TargetRuntimeIdentifier) From ebccb58fdf048ec7198a8a983114a9fc331234e0 Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Mon, 16 Dec 2024 15:17:25 -0800 Subject: [PATCH 3/5] Reference the live portable (+ additional) RID graph from sfxproj projects (where we use R2R) --- eng/targets/Sfx.Common.targets | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/eng/targets/Sfx.Common.targets b/eng/targets/Sfx.Common.targets index 5ff818b44f2d..c587e3760e83 100644 --- a/eng/targets/Sfx.Common.targets +++ b/eng/targets/Sfx.Common.targets @@ -36,4 +36,13 @@ + + + + + + + + $(NuGetPackageRoot)Microsoft.NETCore.Platforms/$(MicrosoftNETCorePlatformsVersion)/PortableRuntimeIdentifierGraph.json + From 9bee87df800045134dc2f4ea7eca0098c1cbc4fa Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Tue, 17 Dec 2024 13:32:48 -0800 Subject: [PATCH 4/5] Fix casing (needs to be lowercase) --- eng/targets/Sfx.Common.targets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/targets/Sfx.Common.targets b/eng/targets/Sfx.Common.targets index c587e3760e83..f97b37939110 100644 --- a/eng/targets/Sfx.Common.targets +++ b/eng/targets/Sfx.Common.targets @@ -42,7 +42,7 @@ - - $(NuGetPackageRoot)Microsoft.NETCore.Platforms/$(MicrosoftNETCorePlatformsVersion)/PortableRuntimeIdentifierGraph.json + + $(NuGetPackageRoot)microsoft.netcore.platforms/$(MicrosoftNETCorePlatformsVersion)/PortableRuntimeIdentifierGraph.json From dd60e20f9f0e6f57af2aefbd0488674aeab9143c Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Thu, 19 Dec 2024 14:06:59 -0800 Subject: [PATCH 5/5] Use DotNetBuild instead of DotNetBuildOrchestrator --- eng/tools/GenerateFiles/Directory.Build.targets.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/tools/GenerateFiles/Directory.Build.targets.in b/eng/tools/GenerateFiles/Directory.Build.targets.in index 535ad48b08f3..4d56e7e3f139 100644 --- a/eng/tools/GenerateFiles/Directory.Build.targets.in +++ b/eng/tools/GenerateFiles/Directory.Build.targets.in @@ -81,7 +81,7 @@ '%(TargetFramework)' == '${DefaultNetCoreTargetFramework}' AND '$(TargetLatestDotNetRuntime)' != 'false' ">${MicrosoftNETCoreAppRuntimeVersion} - $(NETCoreSdkRuntimeIdentifier);$(TargetRuntimeIdentifier) + %(RuntimePackRuntimeIdentifiers);$(NETCoreSdkRuntimeIdentifier);$(TargetRuntimeIdentifier) @@ -109,7 +109,7 @@ ${MicrosoftNETCoreAppRuntimeVersion} - $(NETCoreSdkRuntimeIdentifier);$(TargetRuntimeIdentifier) + %(Crossgen2RuntimeIdentifiers);$(NETCoreSdkRuntimeIdentifier);$(TargetRuntimeIdentifier)