AOT Support for .NET 9.0
So i tried to use RocksDbSharp in a AoT published project today and it didn´t work.
Looked at the code, and yes makes sense, as it emits the IL to call into the native shared objects during runtime, so that won´t work :)
.NET 9.0 we will have AssemblyBuilder.DefinePersistedAssembly see https://github.com/dotnet/runtime/pull/97177
AssemblyBuilder.Save(...) see https://github.com/dotnet/runtime/issues/97015 and https://github.com/dotnet/runtime/issues/92975
So maybe with .NET 9.0 the wrapper arround the native shared object can be pre-generated into IL during build-time and AOT should work?
That sounds quite interesting - will need some changes on how the library integration works. If you're interested in giving it a try let me know!