Skip to content

Use the portable rid for --use-current-runtime. #22373

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 1 commit into from
Nov 3, 2021

Conversation

tmds
Copy link
Member

@tmds tmds commented Oct 28, 2021

Ports #21748 to 6.0.2xx

@dsplaisted ptal.

cc @omajid

@ghost
Copy link

ghost commented Oct 28, 2021

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@@ -62,7 +62,7 @@ Copyright (c) .NET Foundation. All rights reserved.
</PropertyGroup>

<PropertyGroup Condition="'$(UseCurrentRuntimeIdentifier)' == 'true'">
<RuntimeIdentifier>$(NETCoreSdkRuntimeIdentifier)</RuntimeIdentifier>
<RuntimeIdentifier>$(NETCoreSdkPortableRuntimeIdentifier)</RuntimeIdentifier>
Copy link
Member

Choose a reason for hiding this comment

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

On Alpine Linux, this broke a project I was porting to .NET 7:

$ dotnet publish -o dist --use-current-runtime -p:PublishSingleFile=true --self-contained -v:diag | grep -E '(NETCoreSdkPortableRuntimeIdentifier|NETCoreSdkRuntimeIdentifier) =' | sort -u
                   NETCoreSdkPortableRuntimeIdentifier = linux-arm64
                   NETCoreSdkRuntimeIdentifier = linux-musl-arm64

Copy link
Member Author

Choose a reason for hiding this comment

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

NETCoreSdkPortableRuntimeIdentifier should be linux-musl-arm64 on Alpine.

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.

4 participants