Skip to content

Conversation

Add the new diagnostics that weren't already included in an appropriate diagnostic issue.
@BillWagner BillWagner marked this pull request as ready for review December 9, 2025 12:25
@BillWagner BillWagner requested a review from a team as a code owner December 9, 2025 12:25
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 adds documentation for missing UTF-8 and raw string literal compiler diagnostics (CS8996, CS9026, and CS9047) to the C# compiler messages documentation. The changes consolidate these error codes into the existing string literal documentation article and remove them from the generic error page.

Key Changes

  • Added CS8996, CS9026, and CS9047 error codes to the string literal documentation with detailed resolution guidance
  • Removed CS9026 and CS9047 from the generic "sorry we don't have specifics" error page
  • Updated the table of contents to include the new error codes in the string literal article

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.

File Description
docs/csharp/language-reference/compiler-messages/string-literal.md Added documentation for three missing compiler diagnostics (CS8996, CS9026, CS9047) with resolution techniques, updated title/description, and refactored guidance sections
docs/csharp/language-reference/toc.yml Updated displayName to include the three newly documented error codes
docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md Removed CS9026 and CS9047 from the generic error list since they now have dedicated documentation
.github/prompts/error-consolidation.md Fixed spelling error in internal prompt documentation

@BillWagner BillWagner merged commit 6ac1fde into dotnet:main Dec 9, 2025
9 checks passed
@BillWagner BillWagner deleted the utf8-raw-string-literals-diagnostics branch December 9, 2025 20:34
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.

Add C# 11 errors for raw string literals and UTF string literals

2 participants