8/21/2022 9:58:21 PM

If you create a new console app and it includes top-level statements, you might be confused. You also might hate them. If so, here is the "old-school" Main function. Just copy and paste and get back to work.

namespace ConsoleApp1 { internal class Program { static void Main(string[] args) { Console.WriteLine("Hello, World!"); } } }