From 39f5eb5ef84133389652fb951d2b7d586046a310 Mon Sep 17 00:00:00 2001 From: Elinor Fung Date: Wed, 16 Aug 2023 16:02:33 -0700 Subject: [PATCH] Propagate RID properties set in source-build to sdk repo (#17197) --- src/SourceBuild/content/repo-projects/sdk.proj | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/SourceBuild/content/repo-projects/sdk.proj b/src/SourceBuild/content/repo-projects/sdk.proj index 050dabf28..79b1ef060 100644 --- a/src/SourceBuild/content/repo-projects/sdk.proj +++ b/src/SourceBuild/content/repo-projects/sdk.proj @@ -7,6 +7,12 @@ $(BuildCommandArgs) /p:PackageProjectUrl=https://github.com/dotnet/sdk $(BuildCommandArgs) /p:PublishCompressedFilesPathPrefix=$(SourceBuiltToolsetDir) + + <_platformIndex>$(NETCoreSdkPortableRuntimeIdentifier.LastIndexOf('-')) + <_baseOS>$(NETCoreSdkPortableRuntimeIdentifier.Substring(0, $(_platformIndex))) + $(BuildCommandArgs) /p:PortableRid=$(_baseOS)-$(Platform) + $(BuildCommandArgs) /p:TargetRid=$(TargetRid) + $(BuildCommandArgs) /p:NativeAotSupported=false