A quick tip showing how to use `dotnet new` command line switches to reduce boilerplate code when scaffolding .NET Web API projects. By passing flags like `--no-https`, `--no-openapi`, `--use-minimal-apis`, and `--use-program-main`, you can cut the generated `Program.cs` from 14 lines down to 6, avoiding the need to manually delete unwanted code after project creation.
1 Impression