2026-04-29
9m
Node.js Native Addons in C#: Replacing C++ and node-gyp with .NET Native AOT
The C# Dev Kit team replaced their C++ Node.js addon with C# compiled via .NET Native AOT, eliminating Python and node-gyp from their build chain. Here's how N-API, UnmanagedCallersOnly, and LibraryImport make it work.
2026-04-23
9m
Writing Node.js Native Addons in C# with .NET Native AOT
Microsoft's C# Dev Kit team replaced their C++ Node.js addons with C# and Native AOT, eliminating Python dependencies and simplifying their build pipeline. Here is how N-API, UnmanagedCallersOnly, and a custom DLL import resolver make it work.