Skip to content

Instantly share code, notes, and snippets.

@jeffcogswell
Created October 23, 2023 19:00
Show Gist options
  • Save jeffcogswell/da5b4f6c7b8857306208a43f137e7f12 to your computer and use it in GitHub Desktop.
Save jeffcogswell/da5b4f6c7b8857306208a43f137e7f12 to your computer and use it in GitHub Desktop.
Create C# console app in command line with Program Class

How to use the dotnet command line to create a C# app with the program class like the good old days

dotnet new console --use-program-main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment