Home > ASP.NET > How to create console application in Visual Studio Code



How to create console application in Visual Studio Code

in this article, we will explain how to create a console application in Visual Studio Code with example.


in this article, we will explain how to create a console application in Visual Studio Code with example. Visual Studio Code is a lightweight but powerful source code editor. It is a fully open-source and cross-platform framework available on Windows, Linux, and Mac.

You can refer to the link for web application Create sample in ASP.NET core application in visual studio code .

 

You can download Visual Studio code Click here for your platform (Windows, macOS, and Linux).

 

Step -1

Open Visual Studio Code.

How to create console application in Visual Studio Code

 

Step -2

Click on the file in the menu and select Open Folder. We are creating a folder for project(console) and select created folder name.

How to create console application in Visual Studio Code

 

Step -3

Go to Terminal and Select New Terminal in the menu. In the terminal window, type dotnet new console .

How to create console application in Visual Studio Code

 

Step -4

Run the console Application. In the terminal window, type dotnet run .

How to create console application in Visual Studio Code

 

Program.cs

 

Download




Note: All contents are copyright of their authors.



Comments



Leave a Reply

Comment:*
Email ID:*


Name:*