Actual behavior
To workaround a previously reported issue, I copied/pasted CsWin32 generated output into a separate .cs and compiled it with my app. To resolve PCSTR references, I added Windows.Win32.Foundation.PCSTR to the NativeMethods.txt. This results in the confusing error below:
error PInvoke007: The API "Windows.Win32.Foundation.PCSTR" is ambiguous.
Please specify one of: "Windows.Win32.Foundation.PCSTR", "Windows.Win32.Foundation.PCSTR" or "Windows.Win32.Foundation.PCSTR".
Expected behavior
A clear error or no error at all.
Repro steps
TBD
Context
- CsWin32 version: [e.g. 0.3.2-beta]
- Win32Metadata version (if explicitly set by project):
- Target Framework: [e.g. net6.0-windows10.0.17763.0]
- LangVersion(if explicitly set by project): [e.g.- 9]