AXSG is not just a compiler. It produces generated C# plus runtime metadata and helper contracts that let the app, hot reload, and tooling understand the generated tree.
These contain the object-graph construction code, initialization paths, helper methods for bindings/events, and generated partial hooks that match the authored XAML document.
The compiler emits metadata that the runtime uses for:
The generator and build targets are shipped separately from the runtime because compile-time and runtime responsibilities are distinct.
Pure generated code is not enough for the full AXSG feature set. The runtime layer is used for:
XamlToCSharpGenerator.Runtime is the umbrella runtime packageXamlToCSharpGenerator.Runtime.Core contains framework-neutral contracts and registriesXamlToCSharpGenerator.Runtime.Avalonia contains Avalonia-specific runtime integrationThe runtime should support generated output; it should not replace the compiler. If a feature can be lowered deterministically into generated code, that path stays preferred over late runtime interpretation.