[release/v7.6] Fix build to only enable ready-to-run for the Release configuration#26481
Merged
TravisEz13 merged 3 commits intoPowerShell:release/v7.6from Nov 19, 2025
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR backports a build configuration fix from the main branch (#26290) to release/v7.6. The fix ensures that ready-to-run compilation is only enabled for Release builds, preventing Debug builds from being unusable for debugging purposes.
Key Changes:
- Split PropertyGroup conditions to separate AppDeployment and Configuration checks
- Add explicit Configuration=='Release' conditions for PublishReadyToRun settings
- Affects both FxDependentDeployment and SelfContained build configurations
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
SeeminglyScience
approved these changes
Nov 19, 2025
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 #26290 to release/v7.6
Triggered by @TravisEz13 on behalf of @daxian-dbw
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
Fixes Start-PSBuild to correctly handle ready-to-run compilation based on configuration. Previously Debug builds incorrectly enabled ready-to-run, making debugging impossible. This fix ensures developers can properly debug PowerShell on release/v7.6 branch.
Customer Impact
Regression
REQUIRED: Check exactly one box.
This is not a regression.
Testing
Original PR verified that Start-PSBuild correctly enables ready-to-run only for Release configuration. Backport tested by:
Risk
REQUIRED: Check exactly one box.
Medium risk: Changes build configuration properties that affect all deployments (FxDependentDeployment and SelfContained). The change is well-scoped to only add Configuration conditions, preserving existing behavior for Release builds while fixing Debug builds. Has been validated in master branch.