Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 16, 2023

Conversation

elinor-fung
Copy link
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

@@ -7,6 +7,10 @@
<BuildCommandArgs>$(BuildCommandArgs) /p:PackageProjectUrl=https://github.com/dotnet/sdk</BuildCommandArgs>
<BuildCommandArgs>$(BuildCommandArgs) /p:PublishCompressedFilesPathPrefix=$(SourceBuiltToolsetDir)</BuildCommandArgs>

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

@tmds tmds Aug 16, 2023

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