Arch.AOT.SourceGenerator
Arch.AOT.SourceGenerator, making arch fully AOT compatible.
Arch itself in its current state is mostly native AOT compatible. However, it still requires some boilerplate-code, especially the registration of components. That's where this extension comes into play.
Example
You could register all your components by yourself. But that's a lot of work. AOT.SourceGenerator got you, just mark your components with a [Component]
attribute like this:
And it will generate a registration-module like this:
If you prefer to do the whole thing manually, have a look here...
Notice the [ModuleInitializer]
? The generated class will automatically be called upon application start to register the components.
Last updated
Was this helpful?