From 3371c7ac4839f9689c5afa40b5afa9615512f258 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 --- 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 050dabf285d1..79b1ef0607dc 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