What problem does it solve?
It helps you remove IL trim and Native AOT analyzer warnings so your .NET application can publish and run safely without reflection-related surprises.
Core Features & Use Cases
- Resolve IL trim/AOT analyzer warnings by following a warning-first workflow (build → fix → rebuild) to eliminate common IL2026/IL3050 and IL207x issues.
- Apply correct trimming annotations using IsAotCompatible, [DynamicallyAccessedMembers], and related attributes so the trimmer can prove code reachability.
- Handle JSON AOT compatibility by switching reflection-based JsonSerializer usage to source-generated JsonSerializerContext where appropriate.
- Guard against unsafe suppression by avoiding pragma disable and UnconditionalSuppressMessage, and instead propagating requirements via RequiresUnreferencedCode / RequiresDynamicCode when needed.
Use case: You upgrade to net8.0+ and your build starts failing (or warning flooding) with IL2070/IL2067/IL2026/IL3050 during trimming/AOT analysis; this skill guides you to systematically annotate/refactor the code and rerun builds until warnings are gone.
Quick Start
Ask the AI to fix your Native AOT/trimming analyzer warnings for a net8.0+ project by enabling AOT analysis, rebuilding to collect ILXXXX warnings, and iteratively applying the correct annotation or JSON source-generation strategy until you reach zero IL warnings.