Skip to content

GeneratedComClass on a generic class causes generator to crash #94356

Closed as duplicate

Description

@jtschuster

A generic class with GeneratedComClass uses the <> brackets in the hint name, which throws an exception, crashing the generator.

Activity

  1. added
    source-generator
    on Nov 3, 2023
  2. added this to the 9.0.0 milestone on Nov 3, 2023
  3. modified the milestones: 9.0.0, 8.0.x on Nov 3, 2023
  4. mqudsi commented on Apr 18, 2025

    @mqudsi

    Just an fyi: unless I'm mistaken, this was milestoned for 9.x but still happens with .NET 9

  5. AaronRobinsonMSFT commented on Dec 4, 2025

    @AaronRobinsonMSFT
    Member

    Closing in lieu of #122191, which has a practical usage example and full repro.

  6. locked and limited conversation to collaborators on Jan 4, 2026
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

    area-System.Runtime.InteropServicessource-generator

    Type

    No type

    Projects

    • Status
      No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions