Skip to content

Conversation

@BillWagner
Copy link
Member

@BillWagner BillWagner commented Nov 17, 2025

Fixes #49877: .NET 10 requires Visual Studio2026

Fixes #49709:

  • Remove <LangVersion>preview</LangVersion> from all csproj files.
  • Remove any language referring to C# 14 as "preview.

Fixes #48945

  • Remove include file that describes field as a preview feature in C# 13.
  • Update all references to field to refer to C# 14, rather than C# 13 as a "preview" feature.

Note to reviewers: There are a large number of files, but the changes are largely similar phrase changes. The review won't be as difficult as the scale looks.


Internal previews

Toggle expand/collapse
📄 File 🔗 Preview link
docs/csharp/language-reference/compiler-messages/partial-declarations.md Errors and warnings related to partial type and partial member declarations
docs/csharp/language-reference/keywords/field.md "The field contextual keyword"
docs/csharp/language-reference/keywords/get.md The get keyword
docs/csharp/language-reference/keywords/init.md The init keyword (C# Reference)
docs/csharp/language-reference/keywords/set.md "The set keyword: property accessor"
docs/csharp/programming-guide/classes-and-structs/auto-implemented-properties.md Automatically implemented properties
docs/csharp/programming-guide/classes-and-structs/partial-classes-and-methods.md docs/csharp/programming-guide/classes-and-structs/partial-classes-and-methods
docs/csharp/programming-guide/classes-and-structs/properties.md Properties (C# Programming Guide)
docs/csharp/programming-guide/classes-and-structs/using-properties.md "Using Properties"
docs/csharp/whats-new/csharp-13.md What's new in C# 13
docs/csharp/whats-new/csharp-14.md What's new in C# 14

LangVersion of preview shouldn't be needed anywhere now
C# 14 is G.A. The `field` keyword is no longer a preview feature. Make those updates.
@BillWagner BillWagner marked this pull request as ready for review November 18, 2025 19:03
@BillWagner BillWagner requested review from a team and IEvangelist as code owners November 18, 2025 19:03
Copilot finished reviewing on behalf of BillWagner November 18, 2025 19:05
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 PR updates documentation and code snippets to reflect that C# 14 has reached General Availability (GA). The changes remove preview-related language and configuration, and update version references for the field keyword feature from C# 13 to C# 14.

Key changes include:

  • Removing <LangVersion>preview</LangVersion> from all .csproj files across the documentation
  • Updating target frameworks from net8.0/net9.0 to net10.0 where appropriate
  • Updating references to Visual Studio from 2022 to 2026
  • Removing the field-preview.md include file and all references to it
  • Updating documentation to state that the field keyword was added in C# 14 (not C# 13 preview)

Reviewed Changes

Copilot reviewed 26 out of 26 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
orleansurlshortener.csproj Removed LangVersion preview and updated to net10.0
CompoundAssignment.csproj Removed LangVersion preview
csharp-14.md Updated date, VS version to 2026, removed preview language, commented out feature tracking text
csharp-13.md Updated field keyword documentation to reference C# 14 and replaced include with inline warning
methods.csproj Removed LangVersion preview and updated to net10.0
using-properties.md Updated field keyword reference from C# 13 to C# 14, removed include
properties.csproj Removed LangVersion preview and updated to net10.0
PartialClassesAndMethods.csproj Removed LangVersion preview and updated to net10.0
ExtensionMembers.csproj Removed LangVersion preview
properties.md Updated field keyword reference from C# 13 to C# 14, removed include
partial-classes-and-methods.md Removed field-preview include
auto-implemented-properties.md Updated field keyword reference from C# 13 to C# 14, removed include
HowToExtend.csproj Removed LangVersion preview
lock.csproj Removed LangVersion preview and updated to net10.0
operators.csproj Removed LangVersion preview
lambda-expressions.csproj Removed LangVersion preview and updated to net10.0
keywords.csproj Removed LangVersion preview
set.md Updated field keyword reference from C# 13 to C# 14, removed include
init.md Updated field keyword reference from C# 13 to C# 14, removed include
get.md Updated field keyword reference from C# 13 to C# 14, removed include
field.md Updated field keyword reference from C# 13 to C# 14, removed include
errors-warnings.md Removed "preview" row label from table
partial-declarations.md Updated field keyword reference from C# 13 to C# 14, removed include
field-preview.md Deleted include file
Project.csproj (dotnet-9) Removed LangVersion preview
snippets.csproj (dotnet-10) Removed LangVersion preview

Copy link
Contributor

@meaghanlewis meaghanlewis left a comment

Choose a reason for hiding this comment

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

These changes LGTM.

@BillWagner BillWagner merged commit 6fdceba into dotnet:main Nov 18, 2025
9 checks passed
@BillWagner BillWagner deleted the 14-is-ga branch November 18, 2025 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"What's new in C# 14" page says that C# 14 is available in VS 2022 C# 14 post-release tasks Remove field preview include and text

3 participants