We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Added a reference to custom metadata via ProjectionMetadataWinmd (see #356).
ProjectionMetadataWinmd
Metadata contains:
[DllImport("my.dll", EntryPoint = "#100", ExactSpelling = true, PreserveSig = false)] public static extern ReturnType function();
CsWin32 generates:
[DllImport("my.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal static extern winmdroot.ReturnType function();
CsWin32 to read/carry over the entry point as defined by metadata. This can differ from the function name (e.g. FileIconInit).
TBD
0.3.2-beta
net6.0-windows10.0.17763.0
LangVersion
9
The text was updated successfully, but these errors were encountered:
Emit DllImportAttribute.EntryPoint when metadata sets it to a custo…
DllImportAttribute.EntryPoint
1d5d0ff
…m value Fixes #968
AArnott
Successfully merging a pull request may close this issue.
Actual behavior
Added a reference to custom metadata via
ProjectionMetadataWinmd
(see #356).Metadata contains:
CsWin32 generates:
Expected behavior
CsWin32 to read/carry over the entry point as defined by metadata. This can differ from the function name (e.g. FileIconInit).
Repro steps
TBD
Context
0.3.2-beta
]net6.0-windows10.0.17763.0
]LangVersion
(if explicitly set by project): [e.g.9
]The text was updated successfully, but these errors were encountered: