Update to .NET 11 SDK and update dependencies#26783
Open
adityapatwardhan wants to merge 4 commits intomasterfrom
Open
Update to .NET 11 SDK and update dependencies#26783adityapatwardhan wants to merge 4 commits intomasterfrom
adityapatwardhan wants to merge 4 commits intomasterfrom
Conversation
Contributor
There was a problem hiding this comment.
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.0tonet11.0across build, test, and packaging assets. - Pin the repo to a .NET 11 SDK (preview) via
global.jsonand update pipelines/scripts that reference framework-specific output paths. - Update multiple NuGet package references to .NET 11 preview-aligned versions, plus a
Newtonsoft.Jsonprerelease 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. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
|
Bump |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
TargetFrameworkproperty fromnet10.0tonet11.0in all relevant project files (.csproj,.props, and build scripts), includingPowerShell.Common.props,PSGalleryModules.csproj,ResGen.csproj,TypeCatalogGen.csproj, and test props files. [1] [2] [3] [4] [5]global.jsonfrom10.0.102to11.0.100-preview.1.26104.118.net11.0paths and framework settings, including.pipelines/templates/nupkg.yml,.pipelines/templates/windows-hosted-build.yml, andbuild.psm1. [1] [2] [3] [4] [5] [6] [7]Dependency updates:
10.0.2to11.0.0-preview.1.26104.118in various modules, includingMicrosoft.PowerShell.Commands.Diagnostics,Microsoft.PowerShell.Commands.Management,Microsoft.PowerShell.Commands.Utility,Microsoft.PowerShell.CoreCLR.Eventing,Microsoft.PowerShell.SDK,Microsoft.WSMan.Management, andSystem.Management.Automation. Also updatedNewtonsoft.Jsonto13.0.5-beta1. [1] [2] [3] [4] [5] [6] [7]Build and documentation updates:
net11.0, including parameter validation sets and output paths inbuild.psm1,test/tools/NamedPipeConnection/build.ps1, and documentation indocs/building/linux.md. [1] [2] [3]Other code changes:
isConnected: trueparameter from theNamedPipeClientStreamconstructor inRemoteSessionNamedPipe.cs, potentially fixing or updating connection logic.PR Context
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright header