KEMBAR78
Bump .NET to 10 preview.1 by adityapatwardhan · Pull Request #25154 · PowerShell/PowerShell · GitHub
Skip to content

Conversation

@adityapatwardhan
Copy link
Member

@adityapatwardhan adityapatwardhan commented Mar 11, 2025

PR Summary

This pull request includes updates to target the .NET 10.0 framework and upgrade various package dependencies to their latest versions. The most important changes are grouped into framework updates and package updates.

Framework Updates:

  • Updated TargetFramework from net9.0 to net10.0 in multiple project files, including PowerShell.Common.props, PowerShell.Windows.x64.csproj, PSGalleryModules.csproj, ResGen.csproj, TypeCatalogGen.csproj, Test.Common.props, and others. [1] [2] [3] [4] [5] [6]
  • Updated Framework parameter in PowerShell build scripts to net10.0. [1] [2] [3]

Package Updates:

  • Updated various package references in project files to their latest versions, including System.Diagnostics.PerformanceCounter, System.ServiceProcess.ServiceController, System.Threading.AccessControl, System.Drawing.Common, System.Diagnostics.EventLog, Microsoft.Bcl.AsyncInterfaces, Microsoft.Extensions.ObjectPool, Microsoft.Windows.Compatibility, Microsoft.CodeAnalysis.CSharp, Microsoft.CodeAnalysis.Analyzers, and others. [1] [2] [3] [4] [5] [6] [7] [8]
  • Removed certain package references due to NU1510 errors, such as System.Text.Encodings.Web, System.Security.AccessControl, and System.Diagnostics.DiagnosticSource. [1] [2]

SDK Version Update:

  • Updated the .NET SDK version in global.json to 10.0.100-preview.1.25120.13.

Script and Build Updates:

  • Updated target runtime version in Clear-NativeDependencies function and Invoke-OpenCover script to v10.0. [1] [2]

PR Context

PR Checklist

@adityapatwardhan adityapatwardhan requested a review from a team as a code owner March 11, 2025 21:35
@adityapatwardhan adityapatwardhan added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Mar 11, 2025
@adityapatwardhan
Copy link
Member Author

/azp list

@azure-pipelines
Copy link

@adityapatwardhan
Copy link
Member Author

/azp run PowerShell-Windows-Packaging-CI, PowerShell-CI-linux-packaging

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@adityapatwardhan
Copy link
Member Author

/azp run PowerShell-Windows-Packaging-CI, PowerShell-CI-linux-packaging

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

<PackageReference Include="System.IO.Packaging" Version="10.0.0-preview.1.25080.5" />
<PackageReference Include="System.Net.Http.WinHttpHandler" Version="10.0.0-preview.1.25080.5" />
<!-- Removing due to NU1510 -->
<!-- PackageReference Include="System.Text.Encodings.Web" Version="9.0.2" /-->
Copy link
Collaborator

Choose a reason for hiding this comment

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

These comments don't seem helpful.

@adityapatwardhan
Copy link
Member Author

/azp run PowerShell-Windows-Packaging-CI, PowerShell-CI-linux-packaging

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@TravisEz13 TravisEz13 merged commit eef334d into master Mar 19, 2025
42 checks passed
@TravisEz13 TravisEz13 deleted the UpdateDotnet10 branch March 19, 2025 22:48
@microsoft-github-policy-service
Copy link
Contributor

microsoft-github-policy-service bot commented Mar 19, 2025

📣 Hey @adityapatwardhan, how did we do? We would love to hear your feedback with the link below! 🗣️

🔗 https://aka.ms/PSRepoFeedback

@iSazonov
Copy link
Collaborator

iSazonov commented Mar 20, 2025

There is Preview 2 already https://devblogs.microsoft.com/dotnet/dotnet-10-preview-2/

.NET Blog
Find out about the new features in .NET 10 Preview 2 across the .NET runtime, SDK, libraries, ASP.NET Core, Blazor, C#, .NET MAUI, and more!

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.

3 participants