Skip to content

[release/10.0] Fix ComClassGenerator failure with generic types#130930

Open
github-actions[bot] wants to merge 2 commits into
release/10.0from
backport/pr-122197-to-release/10.0
Open

[release/10.0] Fix ComClassGenerator failure with generic types#130930
github-actions[bot] wants to merge 2 commits into
release/10.0from
backport/pr-122197-to-release/10.0

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Backport of #122197 to release/10.0

/cc @AaronRobinsonMSFT @copilot

Customer Impact

  • Customer reported
  • Found internally

This was originally found internally, but has now been discovered external in .NET 10. The customer is blocked moving from built-in COM scenarios to source generation and onto .NET 10.

Regression

  • Yes
  • No

Generics were never supported for COM and therefore wasn't considered.

Testing

A test was added.

Risk

Low. This enabling the parsing of generic names in the source generator.

Copilot AI and others added 2 commits July 16, 2026 21:47
Replace < and > with { and } in hint names to avoid ArgumentException when generating source for generic COM classes. Add test case to validate the fix.

Co-authored-by: jkoritzinsky <1571408+jkoritzinsky@users.noreply.github.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.

@AaronRobinsonMSFT AaronRobinsonMSFT added this to the 10.0.x milestone Jul 16, 2026
@AaronRobinsonMSFT AaronRobinsonMSFT added the Servicing-consider Issue for next servicing release review label Jul 16, 2026
@JulieLeeMSFT JulieLeeMSFT added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants