Safer calls from .NET to native libraries.
Guides writing and reviewing .NET native-library calls with correct signatures, string handling, and memory ownership.
When to use it
Use when writing or reviewing native interop declarations, wrapping C libraries, debugging native-boundary failures, or migrating declarations for AOT and trimming.
It changes how the agent writes and reviews .NET native interop code, limiting changes to the requested scope.
What you provide
The interop code targets .NET: use DllImport for .NET Framework and LibraryImport for .NET 7+; native AOT requires LibraryImport.
No additional actions listed.