Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
adityapatwardhan merged 2 commits into
PowerShell:release/v7.5.7PowerShell/PowerShell:release/v7.5.7from
adityapatwardhan:backport/release/v7.5.7/27269-30d14eafaadityapatwardhan/PowerShell:backport/release/v7.5.7/27269-30d14eafaCopy head branch name to clipboard
May 18, 2026
Merged

[release/v7.5.7] Externalize findMissingNotices target framework selection with ordered Windows fallback#27461
adityapatwardhan merged 2 commits into
PowerShell:release/v7.5.7PowerShell/PowerShell:release/v7.5.7from
adityapatwardhan:backport/release/v7.5.7/27269-30d14eafaadityapatwardhan/PowerShell:backport/release/v7.5.7/27269-30d14eafaCopy head branch name to clipboard

Conversation

@adityapatwardhan
Copy link
Copy Markdown
Member

Backport of #27269 to release/v7.5.7

Triggered by @adityapatwardhan 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)

Moves target framework selection for findMissingNotices.ps1 to a repo-tracked JSON config, enabling easier updates and consistent Windows fallback logic. Removes hardcoded TFMs and legacy Win7 assumptions.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Cherry-pick applied with one conflict in tools/findMissingNotices.ps1, resolved by removing hardcoded TFM variables and using the new config-driven $baseTargetName logic. Verified branch commit and push succeeded.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

Change is limited to build tooling and config, with no impact on runtime or customer-facing code. Maintains intended behavior for all supported platforms.

Merge Conflicts

Resolved conflict in tools/findMissingNotices.ps1 by removing hardcoded TFM assignments and using $baseTargetName per PR intent.

Copilot AI review requested due to automatic review settings May 17, 2026 17:30
@adityapatwardhan adityapatwardhan requested a review from a team as a code owner May 17, 2026 17:30
@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 17, 2026
…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>
@adityapatwardhan adityapatwardhan force-pushed the backport/release/v7.5.7/27269-30d14eafa branch from 47f2837 to 9736be5 Compare May 17, 2026 17:32
Comment thread tools/findMissingNotices.targets.json Outdated
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

Backport to release/v7.5.7 that moves tools/findMissingNotices.ps1 target framework selection into a repo-tracked JSON config and updates Windows behavior to pick the first matching configured Windows TFM (ordered), with fallback to the base target when available.

Changes:

  • Added tools/findMissingNotices.targets.json to define dotnetTargetName and ordered windowsTargetNames.
  • Updated tools/findMissingNotices.ps1 to load/validate the JSON config at script scope.
  • Updated Windows target selection to enumerate available targets from project.assets.json and select the first configured match, with fallback behavior.

Reviewed changes

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

File Description
tools/findMissingNotices.targets.json Introduces config-driven base + Windows TFM candidates for notice harvesting.
tools/findMissingNotices.ps1 Loads config and updates restore/target selection logic (including ordered Windows fallback).

Comment on lines +237 to 240
$baseTargetName = $script:dotnetTargetName
$unixProjectName = 'powershell-unix'
$windowsProjectName = 'powershell-win-core'
$actualRuntime = $Runtime
@@ -0,0 +1,5 @@
{
"dotnetTargetName": "net9.0",
@@ -0,0 +1,5 @@
{
"dotnetTargetName": "net9.0",
"windowsTargetNames": [
@adityapatwardhan adityapatwardhan merged commit 0b2319f into PowerShell:release/v7.5.7 May 18, 2026
34 checks passed
@adityapatwardhan adityapatwardhan deleted the backport/release/v7.5.7/27269-30d14eafa branch May 18, 2026 17:36
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.