Skip to content

AOT Support for .NET 9.0 #52

@Spacefish

Description

@Spacefish

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 dotnet/runtime#97177
AssemblyBuilder.Save(...) see dotnet/runtime#97015 and dotnet/runtime#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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions