Skip to content

Commit 7853c63

Browse files
authored
Add version 13 to version table (#42011)
C# 13 is coming. It's time to add it to the default and all version tables. Also, include the table on the article about configuring the version based on anonymous feedback.
1 parent 905f1af commit 7853c63

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

docs/csharp/language-reference/configure-language-version.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Configure language version
33
description: Learn how to override the default C# language version manually.
44
ms.custom: "updateeachrelease"
5-
ms.date: 10/30/2023
5+
ms.date: 08/02/2024
66
---
77

88
# Configure C# language version
@@ -42,4 +42,10 @@ To configure multiple projects, you can create a *Directory.Build.props* file, t
4242
</Project>
4343
```
4444

45+
## C# language version reference
46+
4547
Builds in all subdirectories of the directory containing that file now use the preview C# version. For more information, see [Customize your build](/visualstudio/msbuild/customize-your-build).
48+
49+
The following table shows all current C# language versions. Older compilers might not understand every value. If you install the latest .NET SDK, you have access to everything listed.
50+
51+
[!INCLUDE [langversion-table](includes/langversion-table.md)]

docs/csharp/language-reference/includes/default-langversion-table.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ms.custom: "updateeachrelease"
44

55
| Target | Version | C# language version default |
66
|------------------|---------|-----------------------------|
7+
| .NET | 9.x | C# 13 |
78
| .NET | 8.x | C# 12 |
89
| .NET | 7.x | C# 11 |
910
| .NET | 6.x | C# 10 |

docs/csharp/language-reference/includes/langversion-table.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ms.custom: "updateeachrelease"
77
| `preview` | The compiler accepts all valid language syntax from the latest preview version. |
88
| `latest` | The compiler accepts syntax from the latest released version of the compiler (including minor version). |
99
| `latestMajor`<br>or `default` | The compiler accepts syntax from the latest released major version of the compiler. |
10+
| `13.0` | The compiler accepts only syntax that is included in C# 13 or lower. |
1011
| `12.0` | The compiler accepts only syntax that is included in C# 12 or lower. |
1112
| `11.0` | The compiler accepts only syntax that is included in C# 11 or lower. |
1213
| `10.0` | The compiler accepts only syntax that is included in C# 10 or lower. |

docs/csharp/language-reference/language-versioning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Language versioning
33
description: Learn about how the C# language version is determined based on your project and the reasons behind that choice.
44
ms.custom: "updateeachrelease"
5-
ms.date: 10/30/2023
5+
ms.date: 08/02/2024
66
---
77

88
# C# language versioning

0 commit comments

Comments
 (0)