This guide explains the runtime-side package split, what lives in the neutral runtime layer versus the Avalonia layer, and when to stay on the umbrella package.
| Layer | Packages | Purpose |
|---|---|---|
| App-facing runtime surface | XamlToCSharpGenerator.Runtime |
composition package for normal installs |
| Neutral runtime contracts | XamlToCSharpGenerator.Runtime.Core |
registries, source info, hot reload/runtime contracts |
| Avalonia runtime integration | XamlToCSharpGenerator.Runtime.Avalonia |
loader, resource resolution, inline-code runtime, hot reload, hot design, and runtime MCP hosting |
Use:
This is the default install story. It keeps the runtime stack aligned with the build/generator stack without making you compose the pieces manually.
Use:
when you need only neutral registries/contracts and do not want the Avalonia layer.
Use:
when you need Avalonia loader behavior, resource/include resolution, inline-code runtime helpers, or hot reload integration directly.
Runtime.CoreOwns:
Primary API entry points:
Runtime.AvaloniaOwns:
CSharp runtime helpersPrimary API entry points:
RuntimeIs intentionally narrative-first. It is the package-level install surface, not the public API destination. When you need member-level API, go to the subpackages.