Skip to content

Propagate RID properties set in source-build to sdk repo#17197

Merged
elinor-fung merged 2 commits into
dotnet:mainfrom
elinor-fung:set-rid-sdk
Aug 16, 2023
Merged

Propagate RID properties set in source-build to sdk repo#17197
elinor-fung merged 2 commits into
dotnet:mainfrom
elinor-fung:set-rid-sdk

Conversation

@elinor-fung

Copy link
Copy Markdown
Member

The sdk repo needs the RID from source-build so that it can update its trimmed down RID graph with the non-portable RID. This propagates the TargetRid and PortableRid properties to sdk during source builds.

Contributes to dotnet/source-build#3584

cc @dsplaisted @tmds

<BuildCommandArgs>$(BuildCommandArgs) /p:PublishCompressedFilesPathPrefix=$(SourceBuiltToolsetDir)</BuildCommandArgs>

<!-- Propagate RID set in source-build to sdk repo -->
<BuildCommandArgs>$(BuildCommandArgs) /p:PortableRid=$(PortableRid)</BuildCommandArgs>

@tmds tmds Aug 16, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PortableRid doesn't detect musl.

For updating the rid graph in the runtime repo, we've been using NETCoreSdkPortableRuntimeIdentifier:

<_platformIndex>$(NETCoreSdkPortableRuntimeIdentifier.LastIndexOf('-'))</_platformIndex>
<BaseOS>$(NETCoreSdkPortableRuntimeIdentifier.Substring(0, $(_platformIndex)))</BaseOS>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants