Add consolidated errors for using and await using#49493
Merged
BillWagner merged 7 commits intodotnet:mainfrom Oct 28, 2025
Merged
Add consolidated errors for using and await using#49493BillWagner merged 7 commits intodotnet:mainfrom
using and await using#49493BillWagner merged 7 commits intodotnet:mainfrom
Conversation
Create the stub article, and add the information for CS9229.
Make more prompt edits to make future changes easier.
That's the original theme.
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR consolidates C# compiler error documentation related to using statements and using declarations into a single comprehensive article, completing the C# 12 error documentation updates.
Key changes:
- Creates a new consolidated article covering 10 error codes (CS0245, CS0728, CS1674, CS8410, CS8417, CS8418, CS8647, CS8648, CS8649, CS9229)
- Removes individual error documentation files that are now consolidated
- Updates redirections to point to the new consolidated article with section anchors
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md |
Removes error codes that now have documentation in the consolidated article |
docs/csharp/misc/cs0728.md |
Deletes individual error file (consolidated into new article) |
docs/csharp/misc/cs0245.md |
Deletes individual error file (consolidated into new article) |
docs/csharp/language-reference/toc.yml |
Adds new consolidated article to TOC and removes individual error entries |
docs/csharp/language-reference/compiler-messages/using-statement-declaration-errors.md |
Creates new consolidated article covering all using statement/declaration errors |
docs/csharp/language-reference/compiler-messages/cs8410.md |
Deletes individual error file (consolidated into new article) |
docs/csharp/language-reference/compiler-messages/cs1674.md |
Deletes individual error file (consolidated into new article) |
.openpublishing.redirection.csharp.json |
Adds redirections from deleted files to corresponding sections in the consolidated article |
.github/prompts/error-consolidation.md |
Updates internal guidance to reflect changes in consolidation process |
docs/csharp/language-reference/compiler-messages/using-statement-declaration-errors.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
meaghanlewis
approved these changes
Oct 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #45118
This is the last set of updated errors for C# 12.
Internal previews
usingstatements andusingdeclarations