Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dpaoliello opened this issue Apr 18, 2024 · 0 comments
Open

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

dpaoliello opened this issue Apr 18, 2024 · 0 comments

Comments

@dpaoliello
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant