dotnet/runtime
在 GitHub 查看Add an editorconfig option to supress LibraryImport suggestion for blittable PInvokes
Open
#111,593 建立於 2025年1月19日
area-Interop-coreclrcode-analyzerhelp wanted
倉庫指標
- Star
- (17,886 star)
- PR 合併指標
- (平均合併 12天 11小時) (30 天內合併 661 個 PR)
描述
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