Skip to main content Link Search Menu Expand Document (external link)

Getting Started

You will write your code with the Microsoft Visual Studio IDE. In this article, your will install Visual Studio and create a Console application.


You can download the IDE at the following link :

Download Visual Studio Community Edition (Free)

Create a console application

  1. Open Visual Studio

  2. On the start window, choose Create a new project

  3. On the Create a new project window, enter console in the search box.

  4. Choose the Console App (C#) template, and then choose Next

  5. In the Configure your new project window, type or enter HelloWorld in the Project name box. Select a folder to store the project. Then, click the Next button

  6. Select the Framework : .NET 7 (Standard Term Support) and click the Create button.

The application code

In the code editor, you will see the following C# code:

Console.WriteLine("Hello, World!");

The code will write a line of text, ‘Hello World!’, in the console window.

Run the application

  1. In the top menu look for the HelloWorld application with a green play button and click it to run the application.

  2. Ensure the application is set to run in ‘Debug’ mode.

  3. View the result of your application code in the console window.

  4. Close the console window when you are done.