Skip to content

Upgrade build to .NET 10 and thus raise minimum PS7 version to 7.6 - #2266

Open
Christoph Bergmeister (bergmeister) with Copilot wants to merge 9 commits into
mainfrom
copilot/update-build-to-use-dotnet-10
Open

Christoph Bergmeister (bergmeister) with Copilot wants to merge 9 commits into
mainfrom
copilot/update-build-to-use-dotnet-10

Conversation

Copilot AI commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

.NET 8 approaches end of support in November 2026. Move the build and development environment to .NET 10 while preserving the existing runtime targets. Similarly the PowerShell version 7.4 and 7.5 (that uses .NET 8 and 9, respectively) go out of support so increasing minimum PowerShell version support to 7.6. It had to be 7.6.6 and not 7.6.9 because CI runners still use 7.6.6, this can be updated later closer to release time.

  • SDK pin: Set global.json to .NET SDK 10.0.401, retaining feature-band roll-forward.
    {
      "sdk": {
        "version": "10.0.401",
        "rollForward": "latestFeature"
      }
    }
  • Developer environment: Update the devcontainer image and label, and refresh the README SDK and Visual Studio requirements.

Co-authored-by: bergmeister <9250262+bergmeister@users.noreply.github.com>
Comment thread README.md Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the .NET 10 build and development environment update.

No open issues 🎉

What changed in this PR

Updates the build and development environment to .NET 10 ahead of .NET 8’s end of support, addressing #2195 while leaving runtime targets unchanged.

Changes:

  • Pins the SDK to 10.0.401, retaining latestFeature roll-forward.
  • Updates the devcontainer image and display name to .NET 10.
  • Refreshes README requirements to .NET 10 and Visual Studio 2026.
File Description
README.md Updates SDK and recommended Visual Studio requirements.
global.json Pins the build SDK to 10.0.401.
.devcontainer/​Dockerfile Switches the container base image to .NET 10.
.devcontainer/​devcontainer.json Updates the container display name to .NET 10.

Review effort: Balanced

Co-authored-by: bergmeister <9250262+bergmeister@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Windows CI is failing because Microsoft.WindowsDesktop.App.Ref lacks an exact nuget.org mapping, causing version 8.0.33 to restore from the Azure feed and fail with HTTP 401.

1 open issue

Review effort: Balanced

Comment thread NuGet.Config Resolved
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the .NET 10 build and development environment update.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@bergmeister
Christoph Bergmeister (bergmeister) marked this pull request as ready for review October 28, 2026 11:44
@bergmeister

Copy link
Copy Markdown
Collaborator

Copilot upgrading .NET from 8 to 10 also means upgrading the minimum supported version of PowerShell 7 version from 7.4 to 6.6 as we have tests for that in our manifest script (.psdm1 file). Please update it and other places that referenced PowerShell 7.4

Co-authored-by: bergmeister <9250262+bergmeister@users.noreply.github.com>

Copilot AI commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

Copilot upgrading .NET from 8 to 10 also means upgrading the minimum supported version of PowerShell 7 version from 7.4 to 6.6 as we have tests for that in our manifest script (.psdm1 file). Please u...

Updated the module loader minimum to PowerShell 7.6.6 in b0be65a. I kept the SMA 7.4.14 reference because SMA 7.6.6 targets only net10, while this project retains its net8 target; the net8 Engine build and focused tests pass.

@bergmeister

Copy link
Copy Markdown
Collaborator

Copilot why not powershell 7.6.9? it's latest powershell version and by the time psscriptanalyzer releases it would've been out for long enough as guidance is to update powershell within a month after release of patch.

alos, I think we should update SMA reference and update everyting that targets net8 to net10 because net10 is implicitly the minomum .NET version due to the minimumm PowerShell 7 upgrade to 7.6

Co-authored-by: bergmeister <9250262+bergmeister@users.noreply.github.com>

Copilot AI commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

Copilot why not powershell 7.6.9? it's latest powershell version and by the time psscriptanalyzer releases it would've been out for long enough as guidance is to update powershell within a month afte...

Updated to PowerShell/SMA 7.6.9 and retargeted the Engine and Rules projects plus the PowerShell 7 build selection to .NET 10.0, while retaining the net462 and netstandard2.0 targets. Changes are in 4b51b00; the full solution builds in Debug and Release.

Co-authored-by: bergmeister <9250262+bergmeister@users.noreply.github.com>
@bergmeister

Copy link
Copy Markdown
Collaborator

Copilot it seems CI is still using PowerShell 7.6.6 so please lower minimum version from 7.6.9 to 7.6.6

Co-authored-by: bergmeister <9250262+bergmeister@users.noreply.github.com>

Copilot AI commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

Copilot it seems CI is still using PowerShell 7.6.6 so please lower minimum version from 7.6.9 to 7.6.6

Lowered the loader minimum to PowerShell 7.6.6 in commit 97a151e and verified the version gate passes on 7.6.6.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are blocking approval of the .NET 10 migration.

No open issues 🎉

Review effort: Balanced

@bergmeister
Christoph Bergmeister (bergmeister) marked this pull request as ready for review October 28, 2026 13:32
@bergmeister Christoph Bergmeister (bergmeister) changed the title Upgrade the build to .NET 10 Upgrade build to .NET 10 and thus raise minimum PS7 version to 7.6 Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update the build to use .NET 10

3 participants