Skip to content

Fix langversion typo in union types tutorial - #55774

Open
jjrodenburg wants to merge 1 commit into
dotnet:mainfrom
jjrodenburg:patch-1
Open

Fix langversion typo in union types tutorial#55774
jjrodenburg wants to merge 1 commit into
dotnet:mainfrom
jjrodenburg:patch-1

Conversation

@jjrodenburg

@jjrodenburg jjrodenburg commented Aug 28, 2026

Copy link
Copy Markdown

Summary

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


Internal previews

File Preview link
docs/csharp/whats-new/tutorials/unions.md Learn preview

Build report

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
@jjrodenburg
jjrodenburg requested review from a team and BillWagner as code owners August 28, 2026 14:55
Copilot AI lite review requested due to automatic review settings August 28, 2026 14:55
@dotnetrepoman dotnetrepoman Bot added this to the August 2026 milestone Aug 28, 2026
@dotnet-policy-service dotnet-policy-service Bot added dotnet-csharp/svc whats-new/subsvc community-contribution Indicates PR is created by someone from the .NET community. labels Aug 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 corrects the dotnet new command-line option casing in the C# union types tutorial so the instructions match the actual CLI argument name.

Changes:

  • Updated dotnet new classlib and dotnet new console examples from --langversion to --langVersion.
  • Updated the accompanying explanatory text to reference --langVersion preview.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-csharp/svc whats-new/subsvc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants