Skip to content

C#: target .NET 10 - #134

Merged
miho merged 1 commit into
mainfrom
build/dotnet-10
Nov 29, 2026
Merged

miho merged 1 commit into
mainfrom
build/dotnet-10

Conversation

@miho

@miho miho commented Nov 29, 2026

Copy link
Copy Markdown
Owner

.NET 8, which every C# project targeted, went out of support on 2026-11-10. .NET 10 is the current long-term release, supported until November 2028.

  • The runtime, the conformance suite, the portable runner, the workshop example and the performance worker target net10.0. CI installs the .NET 10 SDK.
  • One source change: C# 14 reads field inside a property accessor as the property's backing field, and ModelReflection.IsCollection used field as a pattern variable. It is snapshot now.
  • The NuGet lock files list the packages for net10.0. Three packages that .NET 10 contains itself are no longer in the conformance suite's lock file.
  • The documents that named .NET 8 name .NET 10.

Generated code needed no change: the stock, conformance and workshop models compile with C# 14 and warnings as errors.

Checked

On this branch, on Windows with the .NET 10.0.401 SDK:

  • :vmf:test: 125 tests pass.
  • :vmf:verifyCSharpConformance: 997 of 997 on net10.0, all Java readers of C#-written documents pass.
  • :vmf:verifyPortableContract: Java 225 of 225, C# 225 of 225, TypeScript 222 of 222.
  • :vmf:verifyTypeScriptWorkshop, :vmf:verifyTypeScriptStockModels, checkPerformanceTargets and :vmf:packCSharpRuntime pass.

A saved C# performance baseline from .NET 8 is rejected on .NET 10, as the gate rejects any baseline from another runtime; save a new one with performanceBaselineCSharp.

.NET 8, which every C# project targeted, went out of support on
2026-11-10. .NET 10 is the current long-term release, supported until
November 2028.

- The runtime, the conformance suite, the portable runner, the workshop
  example and the performance worker target net10.0. CI installs the
  .NET 10 SDK.
- C# 14 reads `field` inside a property accessor as the property's
  backing field. ModelReflection.IsCollection named a pattern variable
  so; it is now `snapshot`.
- The NuGet lock files list the packages for net10.0. Three packages
  that .NET 10 contains itself are gone from the conformance suite's
  lock file.
- The documents that named .NET 8 name .NET 10.
@miho
miho merged commit da114dd into main Nov 29, 2026
14 checks passed
@miho
miho deleted the build/dotnet-10 branch November 29, 2026 08:23
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.

1 participant