Add feature / version mismatch errors in C# 9#53662
Open
BillWagner wants to merge 6 commits intodotnet:mainfrom
Open
Add feature / version mismatch errors in C# 9#53662BillWagner wants to merge 6 commits intodotnet:mainfrom
BillWagner wants to merge 6 commits intodotnet:mainfrom
Conversation
Add errors and warnings related to C# 9 features being unsupported before C# 9.
Add related codes that were missed earlier.
Integrate the new codes into the correct themes.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR consolidates several C# compiler diagnostics related to language feature availability, language version configuration, and runtime feature support into the language-reference “Feature or version missing” article, and updates F1 keyword routing and navigation so those diagnostics land on the new consolidated guidance instead of the generic “Sorry…” page or older per-error pages.
Changes:
- Expands
feature-version-errors.mdwith coverage for additional diagnostics (including the C# 9 feature/version mismatch errors) and adds structured resolution guidance. - Removes CS1617 and CS1638 standalone pages and adds redirects to the consolidated article.
- Updates F1 keyword mappings and TOC entries so the relevant diagnostics route to the consolidated article.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md | Removes several diagnostics from the generic fallback page now that they have dedicated guidance elsewhere. |
| docs/csharp/misc/cs1638.md | Deletes the standalone CS1638 page (replaced by redirect to consolidated article). |
| docs/csharp/misc/cs1617.md | Deletes the standalone CS1617 page (replaced by redirect to consolidated article). |
| docs/csharp/language-reference/toc.yml | Updates navigation and search displayName mappings to point diagnostics to the consolidated “Feature or version missing” article; removes CS1617/CS1638 entries. |
| docs/csharp/language-reference/compiler-messages/feature-version-errors.md | Adds diagnostics (including CS8830/CS8831/CS8888–CS8891) and significantly expands resolution guidance and categorization. |
| .openpublishing.redirection.csharp.json | Adds redirects for removed CS1617 and CS1638 pages to the consolidated article. |
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 #53546
Internal previews