From 327874829d4d10cec8b3f1e5b59881ef732766bb Mon Sep 17 00:00:00 2001 From: Jort Rodenburg Date: Fri, 28 Aug 2026 09:54:39 -0500 Subject: [PATCH] Fix langversion typo in union types tutorial Per the man page for dotnet new classlib and dotnet new console, the --langversion arg should be --langVersion. Confirmed in local CLI on: Version: 11.0.0-preview.7.26381.103 Architecture: arm64 Commit: e2c1e00b3d --- docs/csharp/whats-new/tutorials/unions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/csharp/whats-new/tutorials/unions.md b/docs/csharp/whats-new/tutorials/unions.md index bc5a65f2f85f4..458a948b133c0 100644 --- a/docs/csharp/whats-new/tutorials/unions.md +++ b/docs/csharp/whats-new/tutorials/unions.md @@ -42,13 +42,13 @@ You build a class library, `SmartHome.Core`, that holds the union types, and a c ```dotnetcli dotnet new sln -n TelemetryMonitor - dotnet new classlib --langversion preview -n SmartHome.Core - dotnet new console --langversion preview -n SmartHome.App + dotnet new classlib --langVersion preview -n SmartHome.Core + dotnet new console --langVersion preview -n SmartHome.App dotnet sln add SmartHome.Core SmartHome.App dotnet add SmartHome.App reference SmartHome.Core ``` -1. The previous commands included the `--langversion preview` to enable C# 15 preview features. In each project file, verify that the language version is set to `preview`: +1. The previous commands included the `--langVersion preview` to enable C# 15 preview features. In each project file, verify that the language version is set to `preview`: ```xml