dotnet/runtime
Add an editorconfig option to supress LibraryImport suggestion for blittable PInvokes
Ouverte
#111 593 ouverte le 19 janv. 2025
area-Interop-coreclrcode-analyzerhelp wanted
Métriques du dépôt
- Stars
- (17 886 étoiles)
- Métriques de merge PR
- (Merge moyen 12j 11h) (661 PRs mergées en 30 j)
Description
The current LibraryImport analyzer always suggests to convert to it from DllImport, even when it's not necessary due to the signature being blittable. This is especially annoying when multitargeting with older TFMs without LibraryImport. As discussed on Discord, there should be an option to opt out of this with an editorconfig switch.
cc @jkoritzinsky @tannergooding