DEVintersection 2019
Nov 18th – 21st, MGM Grand, Las Vegas NV. Keynotes by Microsoft's Scott Guthrie, Eric Boyd, Julia Liuson, and Scott Hanselman.

.NET Tutorial - Hello World in 10 minutes

Not ready to install anything? Try our in-browser tutorial.

Edit your code

Open Program.cs in any text editor (e.g. Notepad) and add a new line of code below the one that prints "Hello World!", like the following:

Program.cs (shortened for clarity)
Console.WriteLine("Hello World!");
Console.WriteLine("The current time is " + DateTime.Now);

Save the Program.cs file, and run your code again.

Terminal
dotnet run
Continue