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

Update to .NET 11 SDK and update dependencies#26783

Merged
daxian-dbw merged 5 commits intomasterPowerShell/PowerShell:masterfrom
updateNET11PowerShell/PowerShell:updateNET11Copy head branch name to clipboard
Feb 19, 2026
Merged

Update to .NET 11 SDK and update dependencies#26783
daxian-dbw merged 5 commits intomasterPowerShell/PowerShell:masterfrom
updateNET11PowerShell/PowerShell:updateNET11Copy head branch name to clipboard

Conversation

@adityapatwardhan
Copy link
Member

PR Summary

This pull request upgrades the PowerShell codebase from .NET 10.0 to .NET 11.0, updating target frameworks, SDK versions, and related package dependencies throughout the project. The changes ensure compatibility with .NET 11.0 and bring in newer package versions where required.

.NET 11.0 upgrade:

  • Updated the TargetFramework property from net10.0 to net11.0 in all relevant project files (.csproj, .props, and build scripts), including PowerShell.Common.props, PSGalleryModules.csproj, ResGen.csproj, TypeCatalogGen.csproj, and test props files. [1] [2] [3] [4] [5]
  • Changed the .NET SDK version in global.json from 10.0.102 to 11.0.100-preview.1.26104.118.
  • Updated PowerShell build scripts and pipeline templates to use net11.0 paths and framework settings, including .pipelines/templates/nupkg.yml, .pipelines/templates/windows-hosted-build.yml, and build.psm1. [1] [2] [3] [4] [5] [6] [7]

Dependency updates:

  • Upgraded all relevant NuGet package references from 10.0.2 to 11.0.0-preview.1.26104.118 in various modules, including Microsoft.PowerShell.Commands.Diagnostics, Microsoft.PowerShell.Commands.Management, Microsoft.PowerShell.Commands.Utility, Microsoft.PowerShell.CoreCLR.Eventing, Microsoft.PowerShell.SDK, Microsoft.WSMan.Management, and System.Management.Automation. Also updated Newtonsoft.Json to 13.0.5-beta1. [1] [2] [3] [4] [5] [6] [7]

Build and documentation updates:

  • Modified build and test scripts to default to net11.0, including parameter validation sets and output paths in build.psm1, test/tools/NamedPipeConnection/build.ps1, and documentation in docs/building/linux.md. [1] [2] [3]

Other code changes:

  • Removed the isConnected: true parameter from the NamedPipeClientStream constructor in RemoteSessionNamedPipe.cs, potentially fixing or updating connection logic.

PR Context

PR Checklist

Copilot AI review requested due to automatic review settings February 11, 2026 22:53
@adityapatwardhan adityapatwardhan added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Feb 11, 2026
Copy link
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 pull request upgrades the repo’s build and packaging stack from .NET 10 to .NET 11, updating TFMs/SDK pinning, pipeline paths, and associated NuGet dependencies to align with the new framework.

Changes:

  • Move project and tooling TFMs from net10.0 to net11.0 across build, test, and packaging assets.
  • Pin the repo to a .NET 11 SDK (preview) via global.json and update pipelines/scripts that reference framework-specific output paths.
  • Update multiple NuGet package references to .NET 11 preview-aligned versions, plus a Newtonsoft.Json prerelease bump.

Reviewed changes

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

Show a summary per file
File Description
tools/packaging/projects/reference/System.Management.Automation/System.Management.Automation.csproj Update reference assembly TFM to net11.0.
tools/packaging/projects/reference/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj Update reference assembly TFM to net11.0.
tools/packaging/projects/reference/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj Update reference assembly TFM to net11.0.
tools/packaging/packaging.strings.psd1 Update nuspec template dependency group to net11.0.
tools/packaging/packaging.psm1 Update packaging runtime framework constant to net11.0 (and whitespace cleanup).
tools/findMissingNotices.ps1 Update target framework names used for notice/CG registration generation to net11.0.
test/tools/WebListener/WebListener.csproj Update ASP.NET Core package reference to .NET 11 preview version.
test/tools/TestService/TestService.csproj Update Microsoft.Windows.Compatibility package reference to .NET 11 preview version.
test/tools/OpenCover/OpenCover.psm1 Update CodeCoverage output path from net10.0 to net11.0.
test/tools/NamedPipeConnection/src/code/Microsoft.PowerShell.NamedPipeConnection.csproj Update test tool TFM to net11.0.
test/tools/NamedPipeConnection/build.ps1 Update build script ValidateSet/default framework to net11.0.
test/Test.Common.props Update shared test props TFM to net11.0.
src/TypeCatalogGen/TypeCatalogGen.csproj Update tool project TFM to net11.0.
src/System.Management.Automation/engine/remoting/common/RemoteSessionNamedPipe.cs Update NamedPipeClientStream construction to match updated API surface.
src/System.Management.Automation/System.Management.Automation.csproj Update package references (including Newtonsoft.Json prerelease and multiple 11.0.0-preview... packages).
src/ResGen/ResGen.csproj Update tool project TFM to net11.0.
src/Modules/PSGalleryModules.csproj Update module bundle project TFM to net11.0 (and whitespace cleanup).
src/Microsoft.WSMan.Management/Microsoft.WSMan.Management.csproj Update System.ServiceProcess.ServiceController package reference to .NET 11 preview version.
src/Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj Update multiple forced dependency package references to .NET 11 preview versions.
src/Microsoft.PowerShell.CoreCLR.Eventing/Microsoft.PowerShell.CoreCLR.Eventing.csproj Update System.Diagnostics.EventLog package reference to .NET 11 preview version.
src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj Update System.Drawing.Common package reference to .NET 11 preview version.
src/Microsoft.PowerShell.Commands.Management/Microsoft.PowerShell.Commands.Management.csproj Update System.ServiceProcess.ServiceController package reference to .NET 11 preview version.
src/Microsoft.PowerShell.Commands.Diagnostics/Microsoft.PowerShell.Commands.Diagnostics.csproj Update System.Diagnostics.PerformanceCounter package reference to .NET 11 preview version.
src/GlobalTools/PowerShell.Windows.x64/PowerShell.Windows.x64.csproj Update global tool TFM to net11.0.
global.json Pin repo SDK to .NET 11 preview SDK.
docs/building/linux.md Update documented build output path to net11.0.
build.psm1 Update default framework validate set and deps.json target framework string to v11.0.
.pipelines/templates/windows-hosted-build.yml Update nupkg staging paths from net10.0 to net11.0.
.pipelines/templates/nupkg.yml Update pipeline paths for ref assemblies/docs from net10.0 to net11.0.

global.json Show resolved Hide resolved
adityapatwardhan and others added 3 commits February 11, 2026 15:14
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@xtqqczze
Copy link
Contributor

Bump LangVersion? #26214

@adityapatwardhan
Copy link
Member Author

@xtqqczze - since you already made a PR, we can merge that after this.

@adityapatwardhan
Copy link
Member Author

@xtqqczze - maybe we should use preview now, which should get us C#15

src/powershell/Program.cs Show resolved Hide resolved
global.json Outdated Show resolved Hide resolved
Copy link
Member

@daxian-dbw daxian-dbw left a comment

Choose a reason for hiding this comment

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

LGTM!

@daxian-dbw daxian-dbw merged commit 212c5f9 into master Feb 19, 2026
40 checks passed
Soluf-th

This comment was marked as off-topic.

@Soluf-th

This comment was marked as off-topic.

@adityapatwardhan adityapatwardhan deleted the updateNET11 branch February 19, 2026 01: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.

4 participants

Comments

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