Skip to content

Add note about RID being ignored when publishing for solution#51417

Merged
meaghanlewis merged 3 commits intodotnet:mainfrom
BartoszKlonowski:50258/fix/dotnet-publish-r
Feb 4, 2026
Merged

Add note about RID being ignored when publishing for solution#51417
meaghanlewis merged 3 commits intodotnet:mainfrom
BartoszKlonowski:50258/fix/dotnet-publish-r

Conversation

@BartoszKlonowski
Copy link
Copy Markdown
Contributor

@BartoszKlonowski BartoszKlonowski commented Jan 31, 2026

This pull request fixes #50258, by adding the note about RIDs (specified by -r param) being "ignored" when publishing for the whole solution.
Instead, what is also suggested in the added note, publishing should be done per project regarding specific RIDs details or by specifying RIDs per project using (linked in the note) <RuntimeIdentifiers> property in the config.

I didn't make the note by markdown > [!NOTE], because I wasn't sure about the layout of bullet points already there, so let me know in comments in case this would be a good idea.


Internal previews

📄 File 🔗 Preview link
docs/core/tools/dotnet-publish.md dotnet publish

@BartoszKlonowski BartoszKlonowski requested review from a team and meaghanlewis as code owners January 31, 2026 16:46
@dotnetrepoman dotnetrepoman Bot added this to the January 2026 milestone Jan 31, 2026
@dotnet-policy-service dotnet-policy-service Bot added dotnet-fundamentals/svc dotnet-cli/subsvc community-contribution Indicates PR is created by someone from the .NET community. labels Jan 31, 2026
Copy link
Copy Markdown
Contributor

@meaghanlewis meaghanlewis left a comment

Choose a reason for hiding this comment

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

@BartoszKlonowski thanks for your contribution! I think using the markdown note format makes sense. I applied that as a suggestion along with a few others.

Comment thread docs/core/tools/dotnet-publish.md Outdated
Comment thread docs/core/tools/dotnet-publish.md Outdated
Improve the way the important NOTE is emphasized by making it the markdown "note" and by separating the next paragraph with the proper newline.

Co-authored-by: Meaghan Osagie (Lewis) <moneikmarie@gmail.com>
@BartoszKlonowski
Copy link
Copy Markdown
Contributor Author

@BartoszKlonowski thanks for your contribution! I think using the markdown note format makes sense. I applied that as a suggestion along with a few others.

Thank you, @meaghanlewis!
Your suggestions are now applied 👍

@meaghanlewis meaghanlewis merged commit 6575051 into dotnet:main Feb 4, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-cli/subsvc dotnet-fundamentals/svc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RuntimeIdentifier argument not working as expected when using dotnet publish on a solution

2 participants