[release/v7.5] Fix R2R for fxdependent packaging #26797
Merged
daxian-dbw merged 1 commit intoPowerShell:release/v7.5from Feb 12, 2026
Merged
[release/v7.5] Fix R2R for fxdependent packaging #26797daxian-dbw merged 1 commit intoPowerShell:release/v7.5from
daxian-dbw merged 1 commit intoPowerShell:release/v7.5from
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Backport to release/v7.5 that fixes ReadyToRun (R2R) settings for framework-dependent packaging by making PublishReadyToRun / PublishReadyToRunEmitSymbols conditional on the deployment type (AppDeployment) rather than unconditionally enabling them for all Release builds.
Changes:
- Disable R2R for
FxDependentdeployments. - Enable R2R (and symbol emission) for
FxDependentDeploymentandSelfContaineddeployments. - Remove unconditional R2R enabling from the
Releaseconfiguration property group.
TravisEz13
approved these changes
Feb 12, 2026
This was referenced Mar 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #26131 to release/v7.5
Triggered by @daxian-dbw on behalf of @adityapatwardhan
Original CL Label: CL-BuildPackaging
/cc @PowerShell/powershell-maintainers
Impact
REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.
Tooling Impact
This fix is required for correct ReadyToRun compilation settings in FxDependent packaging builds. Without this fix, ReadyToRun may be incorrectly enabled or disabled for specific deployment types.
Customer Impact
Regression
REQUIRED: Check exactly one box.
This is not a regression.
Testing
Manual testing of build process for FxDependent and FxDependentDeployment scenarios to verify ReadyToRun settings work correctly for different deployment types.
Risk
REQUIRED: Check exactly one box.
This is a build configuration change that only affects ReadyToRun settings for different deployment types. It fixes an issue introduced by PR #25837 and has been tested in the master branch.