Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AOT Support for .NET 9.0 #52

Open
Spacefish opened this issue Jan 26, 2024 · 1 comment
Open

AOT Support for .NET 9.0 #52

Spacefish opened this issue Jan 26, 2024 · 1 comment

Comments

@Spacefish
Copy link

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?

@theolivenbaum
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants