Skip to content

How to use wildcard in --with-using? #536

Open
@dpaoliello

Description

@dpaoliello

The documentation for --with-using says:

A using directive to be included for the given remapped declaration name during binding generation. Supports wildcards.

How do wildcards work with this?
I've tried to use --with-using=*=SomeNamespace, but I don't see the using declaration for SomeNamespace get added.

Looking at the implementation, PInvokeGenerator.WithUsings doesn't set matchStar to true, and even if it did, PInvokeGenerator.TryGetRemappedValue would only match if the remapping was for * not arbitrary wildcards in the name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions