Skip to main content
๐Ÿ“œ 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:

  1. static bool HasCycle(List<(string Project, string DependsOn)> refs) โ€” true when the dependency graph contains a cycle (Aโ†’Bโ†’A).
  2. static string ScaffoldCommand(string kind, string name) โ€” "console" โ†’ dotnet new console -o {name}; "classlib" โ†’ dotnet new classlib -o {name}; unknown kind โ†’ ArgumentException.
  3. 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).