Skip to content

Bug: Can't bind to ImmutableArray when using Native AOT #2507

Description

@eduardobragaxz

Description

If you try to initialize the array with collection expression you get an unhandled win32 exception. If you try with a Builder, you get an ArgumentException and a an additional message saying "WinRT information: Argument 'source' is not a supported vector."

Repro repo

Steps To Reproduce

Set PublishAot to true, create an ImmutableArray and bind it.

Expected Behavior

To work.

Version Info

CsWinRT 2.1.3
.NET SDK 10.0.302
Windows SDK 26100.8249

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions