Today, we will handle the most common first coding lesson around the world. We always code the first program that says hello world. I think that thing has already become a tradition for the computing world. Also, I will provide a couple of useful screenshots on how to create a project in Visual Studio, so bear with me.
This is the screen that welcomes us if you have freshly installed Visual Studio 2022. I will choose the last option to create a new project, so will you.
On the next screen, we need to type console into the search box. A lot of options will appear, but make sure you choose the console app for C#, as you can see in the screenshot. Because we are gonna code C# for our console app, not Visual Basic or any other option. There you go, if you click all the next buttons until now. This is the screen that has program configurations. I will follow the sector tradition and call my program Hello World. You can do the same things or call it something else; it is totally up to you. The rest you do not need to touch for now. When the time comes, I will explain every corner of our development environment.
On this screen, we just need to select relevant .Net Framework version. I use 8.0 for long term support. So make sure your screen is same with mine then just click the create button.
This is what we get when we click the create button. Basically, it says when the program runs, print the Hello World text to the command line.As you can see on the screen, the command window came up and shows printed text on the command line. For having that, you just need to hit the F5 button or the little green right arrow on the toolbox. It debugs your program and runs it if there is no error in your code.







