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.
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.
Running .NET in Web Workers: The New dotnet new webworker Template
How to use the new first-party Web Worker project template in .NET 11 Preview 2 to offload CPU-intensive work from the browser's main thread, keeping your Blazor WebAssembly UI responsive.
Blazor Custom Elements: Using Blazor Components Outside Blazor
Registering Blazor components as web custom elements for use in non-Blazor applications.
JavaScript Interop in Blazor: When and How to Call JS from .NET
Practical patterns for calling JavaScript from Blazor and .NET from JavaScript.