Building Node.js native addons in C# with .NET Native AOT

The C# Dev Kit team replaced their C++ Node.js addons with a C# implementation built on .NET Native AOT. The switch removed a dependency on Python and still works through Node’s N-API. The post walks through how to build a native addon entirely in C#, using LibraryImport and UnmanagedCallersOnly to bridge Node.js and .NET.
April 20, 2026
4
1