Home About Eric Topics SourceGear

Posts about: .NET Native AOT

The samples from these chapters are available at:


Wednesday, 18 January 2023

Native AOT Overview

A different approach, where .NET code is compiled Ahead of Time (AOT), directly to native code, skipping the Intermediate Language (IL) step.

Wednesday, 18 January 2023


Using Native AOT to build libraries can open many opportunities for interop.

Wednesday, 18 January 2023

Trivial example

A very simplistic C# library, with one function that multiplies two integers

Wednesday, 18 January 2023

Multiplying two integers from Rust

Calling the multiply() function from Rust (Windows, dynamic)

Wednesday, 18 January 2023


Calling the multiply() function using P/Invoke from C#

Monday, 23 January 2023

Static libraries

Calling the multiply() function in a static library from C++

Wednesday, 25 January 2023


Using object references across Native AOT