Programmer's Rules

Visual Studio Code

C# console application in Visual Studio Code on Ubuntu

How to create a Hello World application in VS Code from scratch on Ubuntu

Visual Studio CodeC#LinuxUbuntu

Tested for: Visual Studio Code 1.18.1, Ubuntu 16.04

1. If not done before, install and configure .NET and VS Code IDE

2. Open Linux terminal. Navigate to your VS Code projects folder, eg:

3. Create the new console application project:

where -o denotes the output folder.

4. Go to the project folder:

5. Open the project in Visual Studio Code in terminal using:

6. The IDE generated a predfined class:

7. Restore the references, writing in VS code terminal the following:

7. Run the application using VS Code terminal:

See also:

How to install Visual Studio Code and configure .NET C# on Linux Ubuntu 16.04

C# Hello world application in command prompt
Tutorial statistics