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 }}
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Add option to output all P/Invokes from managed code #985
What will this list be used for? Should it also include information about whether the app contains a call to NativeLibrary.SetDllImportResolver that could redirect the module part to any other file at runtime?
Is this for AOT scenarios?
If so, we could mark NatvieLibrary.SetDllImportResolver as potentially dangerous for AOT - if AOT uses static linking of native dependencies then it's definitely dangerous.
Activity
MichalStrehovsky commentedon Mar 13, 2020
What will this list be used for? Should it also include information about whether the app contains a call to
NativeLibrary.SetDllImportResolverthat could redirect the module part to any other file at runtime?marek-safar commentedon Mar 13, 2020
One of the purposes will be to use the data for static linking
vitek-karas commentedon Mar 16, 2020
Is this for AOT scenarios?
If so, we could mark
NatvieLibrary.SetDllImportResolveras potentially dangerous for AOT - if AOT uses static linking of native dependencies then it's definitely dangerous.marek-safar commentedon Mar 16, 2020
Yes, this primary for static linking AOT scenarios
marek-safar commentedon Mar 26, 2020
Implemented for .net5