Repository navigation
Replace DllImport with LibraryImport in engine - #18496
Conversation
|
I found 449 Also we already used System.Native once. Maybe we can get rid of the PowerShell-Native at all? |
|
Ilya (@iSazonov) my plan for dllimport is to convert them over time a few files at a time. For SMA it probably makes sense to have them under a single |
You can engage me. |
…everted back to DllImport
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
|
Contributes to #18553. |
|
🎉 Handy links: |
PR Summary
Replace usage of
DllImportwithLibraryImportin nativecommandprocessor and coreplatform abstraction. Two DllImport was left because LibraryImport currently doesn't support marshalling custom types (planned for .NET 8) nor StringBuilder.PR Context
LibraryImportgenerates source at build time whereasDllImportdoes at runtime so this offers a performance improvement.PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).