Getting started with C# and Visual Studio

C# is an object-oriented programming language developed by Microsoft. To get started, we need to install an IDE, usually Microsoft Visual Studio.

Download Visual Studio and start installation. Select “Universal Windows Platform Development”.

Generally we can just leave the default packages (no optional packaged needed for now).

We can now start the installation process, which can take quite a long time. When the process is finished, the computer needs to be restarted before we can start using Visual Studio.

After restarting the computer, we can open Visual Studio. It will ask you to either sign in (if you already have a Microsoft account), or to create an account.

Next we will be prompted to select development settings and a theme. We can select “General” for development settings. As for the theme, it’s a matter of personal taste.

To create a new project, select File > New > Project.

In the pop-up, select “Console App (.NET Core)”. Name and save the project.

To add a new class to the project, select Project > Add class (C# Class).

To build code in Visual Studio, select Build > Build solution.

To run the project, select Debug > Start Without Debugging.