Skip to content

fix(common): route net10.0 through reflection for SDK-volatile APIs - #553

Merged
Arthurvdv merged 2 commits into
mainfrom
fix/net10-sdk-compat
Sep 19, 2026
Merged

Arthurvdv merged 2 commits into
mainfrom
fix/net10-sdk-compat

Conversation

@Arthurvdv

@Arthurvdv Arthurvdv commented Sep 19, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Shift the QuoteIdentifierIfNeeded direct-call guard from NET10_0_OR_GREATER to NET11_0_OR_GREATER so net10.0 routes through StringHelper reflection (the SDK method went from 1-param to 2-param in AL v16+, and net10.0 can now load either version)
  • Change #if NETSTANDARD2_1 || NET8_0 to #if !NET11_0_OR_GREATER for six AnalysisView entries in EnumProvider (SymbolKind.AnalysisView, SyntaxKind.PageAnalysisView, PageAnalysisViewList, PageExtensionAnalysisViewList, AnalysisViewAddChange, AnalysisViewModifyChange) — these enum members don't exist in the current net10.0 SDK
  • Update COMPAT comments in StringExtensions.cs and StringHelper.cs to include net10.0

Fixes the 7 compile errors from scheduled CI run 35335185225.

Test plan

  • CI build passes on all three TFMs (netstandard2.1, net8.0, net10.0)
  • CI tests pass (validates StringHelper reflection finds a compatible QuoteIdentifierIfNeeded overload at runtime)

🤖 Generated with Claude Code

Arthurvdv and others added 2 commits September 19, 2026 11:14
The CI net10.0 SDK changed QuoteIdentifierIfNeeded from 2 to 3 params
and removed six AnalysisView enum members. Shift the direct-call guard
to NET11_0_OR_GREATER and update the #if guards on AnalysisView entries
in EnumProvider from NETSTANDARD2_1 || NET8_0 to !NET11_0_OR_GREATER,
keeping compile-time nameof() validation for future TFMs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The method went from 1-param to 2-param in AL v16+; there is no
3-parameter version.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Arthurvdv
Arthurvdv merged commit 434a232 into main Sep 19, 2026
39 checks passed
@Arthurvdv
Arthurvdv deleted the fix/net10-sdk-compat branch September 19, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant