Publish the version 11 alpha draft#53843
Open
BillWagner wants to merge 2 commits into
Open
Conversation
Fixes dotnet#53551 Use the repository prompt to update the docset to use the alpha 11 branch rather than the alpha 10 branch. Major changes are in the docfx.json and the spec overview page.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the C# specification docset to publish the C# v11 alpha draft by switching the dependent csharpstandard repository branch and updating site navigation and in-article references to point at the language specification (instead of older C# 11 feature proposal notes).
Changes:
- Switch the
_csharpstandarddependent repository branch fromalpha-v10tov11-alphafor publishing. - Update the C# specification overview and TOC to reference the C# 11 early draft and remove C# 11 proposal-note entries from the spec TOC.
- Replace many references to C# 11 proposal documents with links into the C# language specification sections.
Reviewed changes
Copilot reviewed 28 out of 28 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| docs/standard/unsafe-code/best-practices.md | Updates guidance link to point at the spec “safe context constraint” section. |
| docs/csharp/whats-new/csharp-version-history.md | Fixes the module initializer spec section anchor reference. |
| docs/csharp/specification/toc.yml | Renames the early draft to C# 11 and removes C# 11 proposal-note entries from the spec TOC. |
| docs/csharp/specification/overview.md | Updates ms.date and changes overview text to “C# 11” early draft. |
| docs/csharp/programming-guide/classes-and-structs/static-constructors.md | Updates module initializer spec anchor reference. |
| docs/csharp/language-reference/tokens/raw-string.md | Replaces proposal-note link with a language spec “string literals” link. |
| docs/csharp/language-reference/tokens/interpolated.md | Updates spec anchor reference and consolidates raw string guidance to spec. |
| docs/csharp/language-reference/statements/declarations.md | Replaces proposal-note link for scoped with the spec section link. |
| docs/csharp/language-reference/statements/checked-and-unchecked.md | Replaces proposal-note link with a spec “operators” link. |
| docs/csharp/language-reference/operators/patterns.md | Replaces list-pattern proposal-note link with spec section links. |
| docs/csharp/language-reference/operators/nameof.md | Removes proposal-note link, leaving spec link only. |
| docs/csharp/language-reference/operators/bitwise-and-shift-operators.md | Removes C# 11 proposal-note links from the spec references list. |
| docs/csharp/language-reference/keywords/required.md | Replaces proposal-note link with spec links for required members. |
| docs/csharp/language-reference/keywords/interface.md | Replaces proposal-note link with spec links for interface operators and static constructors. |
| docs/csharp/language-reference/keywords/file.md | Removes proposal-note link, leaving spec link only. |
| docs/csharp/language-reference/compiler-messages/string-interpolations.md | Updates spec anchor reference for interpolated string handlers. |
| docs/csharp/language-reference/compiler-messages/ref-modifiers-errors.md | Replaces proposal-note link with spec link for safe context constraint. |
| docs/csharp/language-reference/compiler-messages/parameter-argument-mismatch.md | Updates spec anchor reference for interpolated string handlers. |
| docs/csharp/language-reference/compiler-messages/overloaded-operator-errors.md | Replaces proposal-note link with spec “operators” link. |
| docs/csharp/language-reference/builtin-types/struct.md | Replaces proposal-note link with a spec section link for auto-default struct behavior. |
| docs/csharp/language-reference/builtin-types/reference-types.md | Replaces proposal-note links with spec “string literals” link. |
| docs/csharp/language-reference/builtin-types/ref-struct.md | Replaces proposal-note link with spec section link for ref fields. |
| docs/csharp/language-reference/builtin-types/integral-numeric-types.md | Removes the numeric IntPtr proposal-note link from spec references list. |
| docs/csharp/language-reference/builtin-types/default-values.md | Replaces proposal-note link with a spec section link for auto-default struct behavior. |
| docs/csharp/language-reference/attributes/general.md | Updates spec anchor reference for interpolated string handlers. |
| docfx.json | Removes C# 11 proposal content/metadata from build configuration. |
| .openpublishing.redirection.csharp.json | Updates redirects to point at language specification sections instead of proposal pages. |
| .openpublishing.publish.config.json | Switches the _csharpstandard dependency branch to v11-alpha. |
Comments suppressed due to low confidence (1)
docfx.json:55
- The build config no longer includes
_csharplang/proposals/csharp-11.0/*.mdundercsharp/language-reference/proposals. If these C# 11 proposal pages have been published previously, removing them will create 404s for inbound links (deep links to individual proposals, not just theindex.md). Add explicit redirects for the removedcsharp-11.0proposal pages (or keep publishing them as redirect stubs) so existing URLs continue to resolve.
"files": [
"csharp-12.0/*.md",
"csharp-13.0/*.md",
"csharp-14.0/*.md",
"collection-expression-arguments.md",
One anchor moved.
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 #53551
Use the repository prompt to update the docset to use the alpha 11 branch rather than the alpha 10 branch.
Major changes are in the docfx.json and the spec overview page.
Internal previews
Toggle expand/collapse
isandswitchexpressions, and operatorsand,or, andnotin patterns"""in string literals