Deployment/AOT checkpoint
Challenge on lesson: Checkpoint: deployment and AOT
CHALLENGE
Difficulty: advanced+25 XP
Implement static string DeploymentDescription(bool selfContained, bool trimmed, bool aot): return "framework-dependent" when selfContained=false; "self-contained" when selfContained && !trimmed && !aot; "trimmed" when selfContained && trimmed && !aot; "aot" when aot (regardless of trimmed โ AOT implies it). Then implement static bool IsTrimCompatible(string reflectionPattern) returning false for patterns the linker cannot prove: "assembly scanning", "activator by name", "json by string type name"; true for "source generated serializer", "generic constraint", "explicit registration".
Press Submit to check your solution.
Back to lesson: Checkpoint: deployment and AOT