We are not going to change the tradition of programming world. So, let’s have a quick look on how to make our first C# program 😉
Please follow the below steps
- Open Visual Studio
- Click “Create a New Project“
- In the next windows select “Console App (.NET Core)” and click “Next“
- Give a project name (“Hello World “) and click “Create“
- New project appears in the Solution Explorer
- You will find a file named “program.cs” with the below code in it.
123456789101112using System;namespace ConsoleApp1{class Program{static void Main(string[] args){Console.WriteLine("Hello World!");}}} - Choose the F5 key to run the project.
A Command Prompt window appears that contains the line Hello World!
Now you are officially a C# Developer 😁 Just at the tip of the ice berg 🤓. Tutorial using command Prompt is available here
Note : The above procedure is based on Visual Studio 2019 and .NET Core