-
Notifications
You must be signed in to change notification settings - Fork 206
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
Forward special P/Invoke attributes to the target DllImport method #1267
Forward special P/Invoke attributes to the target DllImport method #1267
Conversation
…emitted DllImport entry point.
@AaronRobinsonMSFT looks like Clang warns about unused attributes (like calling conventions on x64), and since Clang uses a pretty standard warning format, MSBuild recognizes it and elevates it to an error since we have WarnAsError set to true. Is there an easy way to suppress the warning from DNNE? Also, is it worth having integration tests for the calling convention work since we validate that we forwarded the attribute in the unit tests and the calling conventions would only have a difference in x86, which we don't run against? |
Updated DNNE to avoid setting these values - https://www.nuget.org/packages/DNNE/1.0.22. |
If the GeneratedDllImport-attributed method has SuppressGCTransition or UnmanagedCallConv attributes, apply the attributes to the generated DllImport method.