Structuring a Maintainable Console App with System.CommandLine

System.CommandLine as a Starting Point Writing console apps from scratch can involve a lot of messing around with boilerplate code just to get basic user input and take advantage of basic features like logging and configuration that come more or less for free in an AspNetCore web app. Adding in features normally found in command line apps like parsing input parameters commands and options or displaying help text to guide users adds on even more work before getting to the app’s core functionality....

February 24, 2023 · 7 min · 1310 words · John Bowen