C# -> native library with .NET 7 + NativeAOT

.NET 7 came out recently and has a newer featured called NativeAOT. Native Ahead Of Time compilation, means compiling c# directly to native code, rather than the IL (intermediate language) that it is normally compiled to. This has some really nice properties that interest us.

This is a companion discussion topic for the original entry at https://luxeengine.com/csharp-to-native-library/