-
Notifications
You must be signed in to change notification settings - Fork 6k
Add workaround for RID-specific tool publishing #49295
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: gewarren <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR documents a workaround that allows developers to opt out of the new .NET 10 RID-specific tool packaging behavior and maintain framework-dependent, platform-agnostic tools when a RuntimeIdentifier
is specified.
Key Changes:
- Added documentation for two MSBuild properties (
CreateRidSpecificToolPackages
andUseAppHost
) that restore pre-.NET 10 tool packaging behavior - Provides an alternative solution for users who need the old behavior despite having a
RuntimeIdentifier
in their project
@baronfel I guess we should wait until GA to merge this? |
@gewarren if possible that would be great - though I know it can be annoying to babysit a stack of PRs for an extended period of time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM.
This PR adds documentation for a workaround that allows users to maintain the old behavior (framework-dependent, platform-agnostic .NET Tools) when they have a
RuntimeIdentifier
specified in their project file.Context
In .NET 10, the tool packaging process changed to use
RuntimeIdentifiers
to create platform-specific tool packages. While this enables optimized scenarios like self-contained and trimmed tools, some users need to maintain the previous behavior where tools were framework-dependent and platform-agnostic.Changes
Added a workaround to the "Recommended action" section of the breaking change article that explains users can opt out of the new behavior by setting two properties in their project file:
This workaround was introduced in dotnet/sdk#51281 and requires the .NET 10.0.100 GA SDK or later.
Fixes #47916
Original prompt
Fixes #49289
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Internal previews