Skip to content

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

Merged
daxian-dbw merged 2 commits into
PowerShell:release/v7.6.2from
daxian-dbw:backport/release/v7.6.2/27269-30d14eafa
May 13, 2026
Merged

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

Conversation

@daxian-dbw
Copy link
Copy Markdown
Member

Backport of #27269 to release/v7.6.2

Triggered by @daxian-dbw on behalf of @app/copilot-swe-agent

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)

Externalizes the target framework selection in findMissingNotices.ps1 from hardcoded values to a JSON config file (findMissingNotices.targets.json). Improves maintainability and makes TFM updates easier without script changes.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Validated by the original PR. The conflict was resolved by correctly setting the dotnetTargetName in findMissingNotices.targets.json to net10.0 (matching the release branch TFM) rather than net11.0 (from main). Functionality is equivalent to the original hardcoded approach.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

Tooling-only change to findMissingNotices.ps1. Moves hardcoded TFM values to a JSON config file, improving maintainability. Behavior is equivalent — the dotnetTargetName in the config is set to net10.0 matching the release branch. No product code changes.

Merge Conflicts

Conflict in tools/findMissingNotices.ps1: the release branch had net10.0 hardcoded while the PR was based on main's net11.0. Resolution: applied the config-driven approach ($baseTargetName = $script:dotnetTargetName) and set dotnetTargetName in the new findMissingNotices.targets.json to net10.0 to match the release branch's TFM.

…red Windows fallback (PowerShell#27269)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
Copilot AI review requested due to automatic review settings May 13, 2026 19:23
@daxian-dbw daxian-dbw requested review from a team and jshigetomi as code owners May 13, 2026 19:23
@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 May 13, 2026
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 PR backports the config-driven target framework selection for findMissingNotices.ps1 into the release branch, replacing hard-coded TFMs with a repo-tracked JSON config and adding Windows target fallback logic.

Changes:

  • Adds tools/findMissingNotices.targets.json with the release branch base TFM.
  • Loads and validates the target framework config at script startup.
  • Updates Windows target selection to inspect restored assets and choose configured candidates before falling back.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tools/findMissingNotices.targets.json Adds external TFM configuration for notice-generation tooling.
tools/findMissingNotices.ps1 Replaces hard-coded TFMs with config-driven target selection and Windows fallback behavior.

Comment thread tools/findMissingNotices.targets.json
Comment thread tools/findMissingNotices.ps1 Outdated
@daxian-dbw daxian-dbw merged commit cd8c725 into PowerShell:release/v7.6.2 May 13, 2026
34 checks passed
@daxian-dbw daxian-dbw deleted the backport/release/v7.6.2/27269-30d14eafa branch May 13, 2026 21:59
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.

4 participants