Environment setup
Install the language tools, save the example with the filename shown and run it from that folder.
Official documentation
Terminal
dotnet new console --output Lesson
cp Program.cs Lesson/Program.cs
dotnet run --project Lesson
Advertisements