Skip to content

[release/v7.4.16] Externalize findMissingNotices target framework selection with ordered Windows fallback#27427

Merged
adityapatwardhan merged 2 commits into
PowerShell:release/v7.4.16from
adityapatwardhan:backport/release/v7.4.16/27269-30d14eafa
May 15, 2026
Merged

[release/v7.4.16] Externalize findMissingNotices target framework selection with ordered Windows fallback#27427
adityapatwardhan merged 2 commits into
PowerShell:release/v7.4.16from
adityapatwardhan:backport/release/v7.4.16/27269-30d14eafa

Conversation

@adityapatwardhan
Copy link
Copy Markdown
Member

Backport of #27269 to release/v7.4.16

Triggered by @copilot on behalf of @bergmeister

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 change is required for improved build reproducibility and future framework updates.

Customer Impact

  • Customer reported
  • Found internally

This change improves target framework selection for findMissingNotices, making it more robust and configurable. It was identified as a needed improvement during internal build/test cycles.

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Validated by running the updated script in CI and local builds. No functional changes to product code.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

The change only affects build tooling and is covered by internal build/test validation.

Copilot AI review requested due to automatic review settings May 13, 2026 19:54
@adityapatwardhan adityapatwardhan requested a review from a team as a code owner May 13, 2026 19:54
@adityapatwardhan adityapatwardhan added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label May 13, 2026
…red Windows fallback (PowerShell#27269)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: TravisEz13 <[email protected]>
Co-authored-by: Travis Plunk <[email protected]>
@adityapatwardhan adityapatwardhan force-pushed the backport/release/v7.4.16/27269-30d14eafa branch from ae72623 to 97a1343 Compare May 13, 2026 19:57
Copy link
Copy Markdown
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 backport externalizes findMissingNotices target framework selection into repo configuration and updates Windows target selection to inspect restored assets before choosing a TFM.

Changes:

  • Adds a JSON file for base and Windows target framework configuration.
  • Loads and validates the config at script startup.
  • Updates Get-CGRegistrations to select Windows targets from configured candidates with base fallback.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
tools/findMissingNotices.targets.json Adds target framework configuration for the notice-generation tooling.
tools/findMissingNotices.ps1 Loads the new config and uses it when resolving restore targets.

Comment thread tools/findMissingNotices.ps1
Comment thread tools/findMissingNotices.targets.json Outdated
Comment thread tools/findMissingNotices.targets.json
Comment thread tools/findMissingNotices.ps1
Comment thread tools/findMissingNotices.targets.json Outdated
@@ -0,0 +1,5 @@
{
"dotnetTargetName": "net11.0",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is a real issue that needs to be addressed.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label May 14, 2026
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@microsoft-github-policy-service microsoft-github-policy-service Bot removed the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label May 15, 2026
@adityapatwardhan adityapatwardhan merged commit 791a2a2 into PowerShell:release/v7.4.16 May 15, 2026
36 checks passed
@adityapatwardhan adityapatwardhan deleted the backport/release/v7.4.16/27269-30d14eafa branch May 15, 2026 21:52
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.

5 participants