Skip to content

[release/v7.5] Fix build to only enable ready-to-run for the Release configuration#26798

Merged
daxian-dbw merged 1 commit intoPowerShell:release/v7.5from
daxian-dbw:backport/release/v7.5/26290-b0507ca4c
Feb 12, 2026
Merged

[release/v7.5] Fix build to only enable ready-to-run for the Release configuration#26798
daxian-dbw merged 1 commit intoPowerShell:release/v7.5from
daxian-dbw:backport/release/v7.5/26290-b0507ca4c

Conversation

@daxian-dbw
Copy link
Member

Backport of #26290 to release/v7.5

Triggered by @daxian-dbw 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

  • Required tooling change
  • Optional tooling change (include reasoning)

This fix is required for developers to be able to debug PowerShell code. Without this fix, Debug builds incorrectly enable ready-to-run which prevents proper debugging.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Verified that Debug builds can be debugged and Release builds correctly enable ready-to-run. Already validated in master, 7.4, and 7.6 branches.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

This is a build configuration change that prevents ready-to-run from being enabled in Debug configuration, making debugging possible. The change has been tested in master and already backported to 7.4 and 7.6.

@daxian-dbw daxian-dbw requested a review from a team as a code owner February 12, 2026 22:40
Copilot AI review requested due to automatic review settings February 12, 2026 22:40
@daxian-dbw daxian-dbw added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Feb 12, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Backport to release/v7.5 that prevents ReadyToRun from being enabled for non-Release builds, restoring the ability to debug Debug builds while keeping ReadyToRun enabled for Release packaging scenarios.

Changes:

  • Restricts PublishReadyToRun / PublishReadyToRunEmitSymbols to Release configuration for FxDependentDeployment.
  • Restricts PublishReadyToRun / PublishReadyToRunEmitSymbols to Release configuration for SelfContained.

@daxian-dbw daxian-dbw merged commit 487acc5 into PowerShell:release/v7.5 Feb 12, 2026
40 of 42 checks passed
@daxian-dbw daxian-dbw deleted the backport/release/v7.5/26290-b0507ca4c branch February 12, 2026 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants