[release/v7.4] Bring Release Changes from v7.6.0-preview.6#26910
Merged
TravisEz13 merged 2 commits intoPowerShell:release/v7.4from Feb 26, 2026
Merged
Conversation
…Shell#26627) 1. Fix the conditions used in `release-MSIX-Publish.yml` 2. Update `build.psm1` to not install dotnet format tool for ADO build.
TravisEz13
commented
Feb 26, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Backports build/packaging pipeline changes from v7.6.0-preview.6 into release/v7.4, focusing on improving CI behavior and Azure Pipelines condition evaluation.
Changes:
- Update
Start-PSBootstrapto locatedotnetand gate .NET global tool installation (dotnet-format) based onTF_BUILD. - Fix MSIX publish task conditions to reference runtime variables via
variables['NAME']instead of$(NAME)macro expansion.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| build.psm1 | Adds dotnet discovery and CI-aware gating around dotnet-format global tool installation in Start-PSBootstrap. |
| .pipelines/templates/release-MSIX-Publish.yml | Updates task condition: expressions to use variables['STABLE'/'LTS'/'PREVIEW'] for reliable runtime evaluation. |
adityapatwardhan
approved these changes
Feb 26, 2026
adityapatwardhan
pushed a commit
to adityapatwardhan/PowerShell
that referenced
this pull request
Feb 26, 2026
…l#26910) Co-authored-by: Justin Chung <[email protected]>
9 tasks
jshigetomi
added a commit
to jshigetomi/PowerShell
that referenced
this pull request
Mar 2, 2026
…l#26910) Co-authored-by: Justin Chung <[email protected]>
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 #26627 to release/v7.4
Triggered by @TravisEz13 on behalf of @jshigetomi
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
Updates build module (build.psm1) to skip dotnet-format installation in CI/CD (Azure DevOps) environments. Updates MSIX pipeline template with corrected Azure Pipeline variable references (using variables['NAME'] syntax instead of string interpolation). These changes prevent unnecessary tool installations in CI and ensure more reliable pipeline condition evaluation.
Customer Impact
Regression
REQUIRED: Check exactly one box.
This is not a regression.
Testing
Verified cherry-pick completed successfully with conflict resolution. Changes are isolated to build scripts and CI/CD templates. The dotnet-format installation logic is now properly gated behind TF_BUILD environment variable check.
Risk
REQUIRED: Check exactly one box.
Medium risk: Build system changes affecting CI/CD pipelines and dotnet tool installation, but changes are isolated and well-scoped. The dotnet-format installation is now properly skipped in CI environments (TF_BUILD), and MSIX pipeline conditions are fixed for better variable reference handling. No runtime impact on user-facing functionality.
Merge Conflicts
build.psm1 had one conflict due to missing dotnet-format installation code in release/v7.4. This was resolved by accepting the incoming change from the PR, which adds the Find-Dotnet call and wraps the dotnet-format installation in a TF_BUILD environment check to skip installation in CI environments.