I used the the dotnet commanline tool to create a new console project as below:
dotnet new console
and then opened the program.cs