Learn C#

Let’s start

Watch The C# intro video and repeat. The easiest way to memorize the C# (C-Sharp) programing language.

Prepare Visual Studio for C#

Step 1. Go to your Desktop folder.

Step 2. Create a New Folder and name it Tutorials.

Step 3. Double click on it, create another New Folder inside the tutorials folder and name it CSharp.

Create your first C# File

Step 4. Open Visual Studio and click on create a new project.

Step 5. Select C# as a programming language, Windows as a platform and Console as a project type.

Then select Console App and click on next.

Step 6. In Project Name section type “MyFirstCSharpFile”.

Set the location path to “..\Desktop\Tutorials\CSharp\”.

Click on Next button.

Step 7. Set .Net 6.0 (Long-term support) as Framework

Click on Create button.

Step 8. Delete the text, write the following C# code and save the file. (File > Save All or press Ctrl+Shift+S on your keyboard).
				
					Console.WriteLine("Hello Telestudents.com!");
				
			

Step 9. Don’t worry if you don’t understand the code above.

We’ll go over it in more depth in the next chapters.
Focus on running the code for the time being.

It should like this in Visual Studio:

Step 10. Then go to Debug > Start without Debugging or press CTRL+F5 to execute the program.

This is how the final result will appear:

Congratulations!
Your first C# program has been developed and executed.
Watch The C# intro video and repeat. The easiest way to memorize the C# (C-Sharp) programing language.
Scroll to Top