In this article, you will find instructions on how to:

  • Install .NET Code SDK (if necessary)
  • Set up an IDE (Integrated Development Environment) of your choice (Visual Studio Community or Visual Studio Code).
  • Write, execute, and debug C# programs.

Notice: Visual Studio Community is easy to install but runs only on Windows. On the other hand, Visual Studio Code runs on Windows, macOS, and Linux, but it requires a little bit more effort to install. Particularly, Visual Studio Community includes a C# compiler and debugger, while, Visual Studio Code requires installing them separately.

These instructions are provided for both Windows and Linux platform.

If you find any inconsistencies, please let me know, and I will update the instructions as soon as possible. To report issues, click here.

Windows

Working with Visual Studio Community

  1. Install Visual Studio Community
  2. Configure Visual Studio Community for C#
  3. Writing and Executing a C# Program
  4. Debugging C# Programs

Working with Visual Studio Code

  1. Install .NET Core SDK
  2. Install Visual Studio Code
  3. Configure Visual Studio Code for C#
  4. Writing and Executing a C# Program
  5. Debugging C# Programs

Linux

Working with Visual Studio Code

  1. Install .NET Core SDK
  2. Install Visual Studio Code
  3. Configure Visual Studio Code for C#
  4. Writing and Executing a C# Program
  5. Debugging C# Programs