๐ WAYPOINT LESSON
Checkpoint โ Projects & CLI
โญ beginnerโณ 20 min read๐ Lesson 73 of 85
A project planner: dependency validation, scaffold commands, and a build-pipeline simulator.
Checkpoint: the project planner
Task: implement in Solution:
static bool HasCycle(List<(string Project, string DependsOn)> refs)โ true when the dependency graph contains a cycle (AโBโA).static string ScaffoldCommand(string kind, string name)โ"console"โdotnet new console -o {name};"classlib"โdotnet new classlib -o {name}; unknown kind โArgumentException.static List<string> FailingProjects(List<(string Project, string DependsOn)> refs, List<string> broken)โ projects that are broken or transitively depend on a broken one (alphabetical order).