Lightlines
By dotnet

dotnet-pinvoke

dotnet2.6k installs

Safer calls from .NET to native libraries.

What it does

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.

How to use it

It changes how the agent writes and reviews .NET native interop code, limiting changes to the requested scope.

What you provide

  • An existing project

Latest review

What you need · 1

The interop code targets .NET: use DllImport for .NET Framework and LibraryImport for .NET 7+; native AOT requires LibraryImport.


Access · 0

No additional actions listed.