You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mark TypeBuilder.DefinePInvokeMethod as RequiresUnreferencedCode #45703
If linker didn't see the p/invoke, it would not have done the necessary work to ensure the generated marshalling code for the p/invoke can work (constructors might be missing for types used in out positions of the signature, the p/invoke might introduce COM into the process etc.).
We should put RequiresUnreferencedCodeAttribute on all overloads in the ref assembly and all the implementations.
Activity
Dotnet-GitSync-Bot commentedon Dec 7, 2020
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.