You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ASPIREEXPORT001 flagging 'extension' keyword-based extension methods as invalid #17604
The newer extension method format is not supported by the Aspire.Hosting.Integration.Analyzers package (enabled through the EnableAspireIntegrationAnalyzers MSBuild property).
It is flagging the WithLikeC4Reference as not being static.
Area: area-polyglot Kind: bug Repro: yes-minimal — code sample in issue body (lines 11–25) Affected version(s): not specified; reporter is on .NET 10.0.300 + Aspire analyzers (latest: 13.4.0-rc.1) Severity: S3 — analyzer (ASPIREEXPORT001) false-positive on C# 14 extension block syntax; workaround = author the method as a classic this-parameter extension method.
Urgency: 🟡 vNext — recommend milestone 13.5
Reason: Analyzer in Aspire.Hosting.Integration.Analyzers doesn't recognize the new C# 14 extension-block syntax used to expose polyglot AppHost methods via [AspireExport]. Reasonable workaround exists, not blocking 13.4 ship.
Activity
joperezr commentedon May 28, 2026
🤖 Aspire triage pass — 2026-05-28 16:56 UTC
Area:
area-polyglotKind: bug
Repro: yes-minimal — code sample in issue body (lines 11–25)
Affected version(s): not specified; reporter is on .NET 10.0.300 + Aspire analyzers (latest: 13.4.0-rc.1)
Severity: S3 — analyzer (
ASPIREEXPORT001) false-positive on C# 14extensionblock syntax; workaround = author the method as a classicthis-parameter extension method.Urgency: 🟡 vNext — recommend milestone 13.5
Reason: Analyzer in
Aspire.Hosting.Integration.Analyzersdoesn't recognize the new C# 14 extension-block syntax used to expose polyglot AppHost methods via[AspireExport]. Reasonable workaround exists, not blocking 13.4 ship.Suggested owner(s): Sébastien Ros (@sebastienros) (score 6), backup David Pine (@IEvangelist) (score 3)
Evidence:
area-polyglot(last 90d)area-polyglot(last 90d)area-polyglot(last 90d)Confidence: medium
Needs human?: no
Dry-run mode — no labels or milestone applied. Reply
/triage applyto promote, or edit and reapply.adamint commentedon May 28, 2026
Sébastien Ros (@sebastienros) is 13.5 appropriate
sebastienros commentedon May 28, 2026
I believe this can be mitigated by adding another internal extension with the old syntax, though it's ugly. Should be fine for 13.5.
Fix ASPIREEXPORT001 false positive on C# 14 extension blocks (microso…