Repository navigation
Release v22.36.0
Added
<CratisArcControllersSupport>false</CratisArcControllersSupport>in an application's project file turns MVC off through a feature switch, so a trimmed or NativeAOT publish removes Arc's MVC registration. In a trimmed test app this dropped trim warnings from 140 to 16 on net10.0 and from 130 to 18 on net8.0, and MVC assemblies from 6 to 2. Controllers stay on by default, andWithoutControllers()still works at runtime (Refs #2895)
The switch is a RuntimeHostConfigurationOption written by a packed build/Cratis.Arc.targets (also in buildTransitive/), read by [FeatureSwitchDefinition]/[FeatureGuard] on net9.0+ and by embedded ILLink substitutions on net8.0. Mvc.Core and Mvc.Abstractions still ship because Arc references MVC types elsewhere.
Reviewed with Anthropic models only (no cross-provider review available right now).