Native Avalonia Controls with NativeAOT. #16725
josephmoresena
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
NativeAOT doesn't support:
If you need to load .NET code dynamically you need to use non-AOT runtime |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to know if this scenario could be supported by Avalonia UI now that NativeAOT is a non-experimental implementation within the .NET ecosystem.
Let's imagine I have an application using Avalonia UI built with NativeAOT. This application could be considered a launcher (Windows) for different screens (User controls) distributed across various modules. The lifecycle of each module is distinct, and I would like to manage the maintenance of the application according to the module (the launcher itself being another module).
Is it possible to create libraries with NativeAOT that somehow allow linking Avalonia controls compiled in the native library, but which interact with the managed environment created by the main Avalonia UI instance that would be instantiated by the launcher?
Beta Was this translation helpful? Give feedback.
All reactions