Upgrade projects to target .NET 10#51537
Merged
gewarren merged 1 commit intodotnet:mainfrom Feb 6, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request upgrades code snippet project files to target .NET 10, updating them from various previous .NET versions (.NET 7, .NET 8, and .NET 9).
Changes:
- Updated 37 project files (.csproj, .vbproj, .fsproj) to target .NET 10
- Changed TargetFramework values from net7.0/net8.0/net9.0 to net10.0 (or net10.0-windows for Windows-specific projects)
- Incidental removal of BOM (Byte Order Mark) characters from some project files
Reviewed changes
Copilot reviewed 36 out of 36 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| docs/fundamentals/runtime-libraries/snippets/System/String/Intern/fsharp/fs.fsproj | Upgraded F# project from net8.0 to net10.0 |
| docs/fundamentals/runtime-libraries/snippets/System/Span/Slice/fsharp/fs.fsproj | Upgraded F# project from net8.0 to net10.0 |
| docs/fundamentals/runtime-libraries/snippets/System/Span/Slice/csharp/slice.csproj | Upgraded C# project from net8.0 to net10.0 |
| docs/fundamentals/runtime-libraries/snippets/System/NotSupportedException/Overview/csharp/project.csproj | Upgraded C# library project from net8.0 to net10.0 |
| docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/vb/WinForms/WinFormsApp1.vbproj | Upgraded VB Windows Forms project from net8.0-windows to net10.0-windows |
| docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/csharp/WinForms/WFCrossThreadCS.csproj | Upgraded C# Windows Forms project from net8.0-windows to net10.0-windows |
| docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/csharp/WPF2/WPFCrossThreadDispatcherCS.csproj | Upgraded C# WPF project from net8.0-windows to net10.0-windows |
| docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/csharp/WPF1/WPFCrossThreadCS.csproj | Upgraded C# WPF project from net8.0-windows to net10.0-windows |
| docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/csharp/Other/project.csproj | Upgraded C# library project from net8.0 to net10.0 |
| docs/fundamentals/runtime-libraries/snippets/System/InvalidCastException/Overview/csharp/project.csproj | Upgraded C# library project from net8.0 to net10.0 |
| docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlLinkedNode/csharp/PreviousSibling/Project.csproj | Upgraded C# library project from net8.0 to net10.0 |
| docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlDocument/Overview/vb/Non-WinForms/project.vbproj | Upgraded VB library project from net8.0 to net10.0 |
| docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlDocument/Overview/csharp/xmlprocessingapp.csproj | Upgraded C# Windows Forms app from net8.0-windows to net10.0-windows |
| docs/fundamentals/runtime-libraries/snippets/System.Xml.Schema/XmlSchemaSet/Overview/vb/project.vbproj | Upgraded VB library project from net8.0 to net10.0 |
| docs/fundamentals/runtime-libraries/snippets/System.Threading.Tasks/TaskScheduler/Overview/vb/WpfApp.vbproj | Upgraded VB WPF project from net8.0-windows to net10.0-windows |
| docs/fundamentals/runtime-libraries/snippets/System.Threading.Tasks/TaskScheduler/FromCurrentSynchronizationContext/csharp/Project.csproj | Upgraded C# WPF project from net8.0-windows to net10.0-windows |
| docs/fundamentals/runtime-libraries/snippets/System.Numerics/Complex/Overview/vb/Project.vbproj | Upgraded VB project from net9.0 to net10.0 |
| docs/fundamentals/runtime-libraries/snippets/System.Numerics/Complex/Overview/csharp/Project.csproj | Upgraded C# project from net9.0 to net10.0 |
| docs/fundamentals/runtime-libraries/snippets/System.Globalization/RegionInfo/csharp/Project.csproj | Upgraded C# library project from net8.0 to net10.0 |
| docs/fundamentals/runtime-libraries/snippets/System.Globalization/NumberFormatInfo/csharp/project.csproj | Upgraded C# library project from net8.0 to net10.0 |
| docs/fundamentals/runtime-libraries/snippets/System.Globalization/DateTimeFormatInfo/csharp/project.csproj | Upgraded C# library project from net8.0 to net10.0 |
| docs/fundamentals/runtime-libraries/snippets/System.Drawing.Drawing2D/Matrix/Overview/csharp/Project.csproj | Upgraded C# Windows Forms project from net7.0-windows to net10.0-windows |
| docs/fundamentals/reflection/snippets/csharp/instantiate-generic-type/Project.csproj | Upgraded C# project from net9 to net10.0 (also fixes missing .0 suffix) |
| docs/fundamentals/networking/telemetry/snippets/tracing/ConnectionTracingDemo.ServiceDefaults/ConnectionTracingDemo.ServiceDefaults.csproj | Upgraded C# project from net9.0 to net10.0 |
| docs/fundamentals/networking/telemetry/snippets/metrics/HelloBuiltinMetrics.csproj | Upgraded C# executable from net8.0 to net10.0 |
| docs/fundamentals/networking/snippets/tcp/tcp-listener/tcp-listener.csproj | Upgraded C# executable from net8.0 to net10.0 |
| docs/fundamentals/networking/snippets/tcp/tcp-client/tcp-client.csproj | Upgraded C# executable from net8.0 to net10.0 |
| docs/fundamentals/networking/snippets/socket/socket-server/socket-server.csproj | Upgraded C# executable from net8.0 to net10.0 |
| docs/fundamentals/networking/snippets/socket/socket-client/socket-client.csproj | Upgraded C# executable from net8.0 to net10.0 |
| docs/fundamentals/networking/snippets/shared/shared.csproj | Upgraded C# library from net8.0 to net10.0 |
| docs/fundamentals/networking/snippets/misc/misc.csproj | Upgraded C# executable from net8.0 to net10.0 |
| docs/fundamentals/networking/snippets/internal-diag-telemetry/internal-diag-telemetry.csproj | Upgraded C# executable from net8.0 to net10.0 |
| docs/fundamentals/networking/snippets/httpclient/httpclient.csproj | Upgraded C# executable from net8.0 to net10.0 |
| docs/fundamentals/networking/http/snippets/httpclient-guidelines/Project.csproj | Upgraded C# library from net9.0 to net10.0 |
| docs/fundamentals/code-analysis/quality-rules/snippets/vb/extra-rules/extra-rules.vbproj | Upgraded VB library from net8.0 to net10.0 |
| docs/fundamentals/code-analysis/quality-rules/snippets/csharp/extra-rules/extra-rules.csproj | Upgraded C# library from net8.0 to net10.0 |
meaghanlewis
approved these changes
Feb 6, 2026
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.
(Used GitHub Copilot CLI.)