Skip to content

Conversation

@adityapatwardhan
Copy link
Member

@adityapatwardhan adityapatwardhan commented Oct 1, 2025

PR Summary

This pull request updates the PowerShell.Common.props file to make the PublishReadyToRun and PublishReadyToRunEmitSymbols settings conditional based on the deployment type, instead of always enabling them for Release builds. This change improves control over ReadyToRun publishing behavior for different deployment scenarios.

Deployment-specific ReadyToRun settings:

  • For FxDependent deployments, disables PublishReadyToRun and PublishReadyToRunEmitSymbols.
  • For FxDependentDeployment and SelfContained deployments, enables PublishReadyToRun and PublishReadyToRunEmitSymbols.

General build configuration:

  • Removes unconditional enabling of PublishReadyToRun and PublishReadyToRunEmitSymbols in the Release configuration, relying instead on the deployment-specific settings above.

PR Context

Issue introduced by - #25837

PR Checklist

@adityapatwardhan adityapatwardhan requested review from a team and jshigetomi as code owners October 1, 2025 19:06
@adityapatwardhan adityapatwardhan added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Oct 1, 2025
@adityapatwardhan
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

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

This pull request fixes ReadyToRun (R2R) compilation settings for different PowerShell deployment types by making the settings conditional based on deployment type rather than unconditionally enabled for Release builds.

  • Moves PublishReadyToRun and PublishReadyToRunEmitSymbols settings from the global Release configuration to deployment-specific property groups
  • Disables R2R for FxDependent deployments while enabling it for FxDependentDeployment and SelfContained deployments
  • Provides more granular control over R2R behavior based on deployment scenarios

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@adityapatwardhan adityapatwardhan enabled auto-merge (squash) October 1, 2025 19:17
@jshigetomi
Copy link
Collaborator

LGTM

@adityapatwardhan adityapatwardhan merged commit 51a2199 into master Oct 1, 2025
48 of 55 checks passed
@microsoft-github-policy-service
Copy link
Contributor

microsoft-github-policy-service bot commented Oct 1, 2025

📣 Hey @@adityapatwardhan, how did we do? We would love to hear your feedback with the link below! 🗣️

🔗 https://aka.ms/PSRepoFeedback

@daxian-dbw daxian-dbw deleted the fixPackagingBuild branch October 1, 2025 19:40
SIRMARGIN pushed a commit to SIRMARGIN/PowerShell that referenced this pull request Dec 12, 2025
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