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

PInvoke007 - The API "IOCTL_*" is ambiguous. Please specify one of: "IOCTL_*" or "IOCTL_*". #988

Closed
Nuklon opened this issue Jul 10, 2023 · 1 comment · Fixed by #1019
Closed
Assignees
Labels
bug Something isn't working

Comments

@Nuklon
Copy link

Nuklon commented Jul 10, 2023

Actual behavior

Doesn't build with the error. The "one of" are both identical. Weirdly it does generate the data.

Expected behavior

Should work OK.

Repro steps

  1. NativeMethods.txt content:
IOCTL_*

Context

  • CsWin32 version: 0.3.18-beta+dc807e7787
  • Target Framework: net 6.0
  • LangVersion (if explicitly set by project): latest
@Nuklon Nuklon added the bug Something isn't working label Jul 10, 2023
@AArnott
Copy link
Member

AArnott commented Jul 18, 2023

Thanks for the bug report. I can repro it.

@AArnott AArnott self-assigned this Aug 11, 2023
AArnott added a commit that referenced this issue Aug 11, 2023
When a wildcard matches against multiple metadata assemblies, the source generator would report a senseless diagnostic to the user about an ambiguity that they cannot and need not resolve.

Fixes #988
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants