Skip to content

Toolchain: C# 15, AnalysisLevel 11, a package refresh, and the tools on net11.0 #829

Closed

Description

@Blind-Striker

What

The repository's toolchain now uses C# 15, AnalysisLevel 11, the refreshed packages, and the tools on net11.0 (#870, #864, #875 and #877). The packages keep their target frameworks: netstandard2.0, net472, net10.0, net11.0. Nothing here changes the public surface on its own.

The toolchain steps landed in separate pull requests, ordered by risk, so that a new diagnostic or a changed byte could be traced to one cause (#838, #864, #870, #875 and #877).

The remaining follow-through stays in 1.x: use closed first on SchemaNode and TypeReferencePlan; weaker internal sites wait. Keep the collection-expression comparer and capacity sites already adopted, with no mass rewrite. Labeled break and continue wait until the code they simplify is next touched. Extension indexers, static interface members without default-interface-method support, and extended layout have no suitable current use. Union types stay in #200, and the memory-safety model stays off while it is in preview (maintainer's outcome; current hierarchy definitions: tools/OpenCode.Sdk.Tools/Generator/Ingestion/Models/SchemaNode.cs and tools/OpenCode.Sdk.Tools/Generator/Binding/Models/TypeReferencePlan.cs).

Done when

  • Each step is merged or closed with its reason, and the full gate and CI on three operating systems pass after each.
  • Package validation against the 1.0.1 baseline reports no change to the public surface from steps 1 to 4 and 6.
  • The CHANGELOG says what a consumer can observe, if anything.

Related

Activity

  1. added this to the 1.0.2 milestone on Nov 10, 2026
  2. added
    enhancement
    on Nov 10, 2026
  3. modified the milestones: 1.1.0, 1.2.0 on Nov 14, 2026
  4. modified the milestones: Next, 1.x on Nov 16, 2026
  5. Blind-Striker commented on Nov 16, 2026

    @Blind-Striker
    CollaboratorAuthor

    Steps 1–4 and 6 are merged: #838 (analyzers 11.0.100), #864 (AnalysisLevel 11), #870 (C# 15), #875 (the dependency refresh) and #877 (the tools on net11.0).

    Step 5, the C# 15 feature survey with one decision per feature, is the only step left. The done-when exempts it from the public-surface check, so it may propose public changes. It starts with the read-only survey now, before 2.0.0:

    • If a feature needs a breaking public change, it moves to its own issue in milestone Next and is decided before 2.0.0, since a major release is the window for that change.
    • Everything else stays here, in milestone 1.x.
  6. Blind-Striker commented on Nov 16, 2026

    @Blind-Striker
    CollaboratorAuthor

    Step 5, the C# 15 feature survey, is done. No breaking candidate is adopted, so nothing moves to Next.

    The one breaking candidate was making PtyFrame a closed class. It is declined, and PtyFrame stays as it is. Its frames mirror the server's PTY wire, which a newer server can grow with another frame kind, so closing the hierarchy would commit the SDK to two frame types for good and break every consumer's default arm. ADR-0036's reasoning applies.

    The non-breaking outcomes stay here, under 1.x:

    • Collection-expression arguments ([with(...), ...]): keep the comparer and capacity sites already adopted; no mass rewrite of generated or hand-written code.
    • closed on internal generator hierarchies: use it first on SchemaNode and TypeReferencePlan, where it makes their dispatch exhaustive. The weaker internal sites wait.
    • Labeled break and continue: not now as a standalone change; use them when the code they would simplify is next touched.
    • Extension indexers, static interface members without default-interface-method support, and extended layout: no suitable use in the current code.
    • Union types are tracked in C# 15 unions as sibling types over the generated records #200, and the memory-safety model stays off while it is in preview.
  7. Blind-Striker commented on Nov 22, 2026

    @Blind-Striker
    CollaboratorAuthor

    Closing as done. All toolchain steps landed: #838 (NetAnalyzers 11), #864 (AnalysisLevel 11), #870 (C# 15), #875 (package refresh) and #877 (tools on net11.0). The C# 15 feature survey is recorded above. The optional closed-hierarchy follow-through in the generator's abstract records is not a tracked commitment.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions