How to debug or execute C# program in Visual Studio?

Using Visual Studio 2005/2008/2012/2013 or any version

Visual Studio is easiest way to handle C# code. To execute the program on visual studio, go through the following steps:
Step 1: Launch Visual Studio and go to File > New Project

Step 2: Select Visual C# in left pane and then choose Console Application. Name your Project and select Location and ok


Step 3: Visual Studio will open a code editor window including some necessary code.

Step 5: Now write now Write in Main method the following line of code  code and press F5 to run C# code.
Console.WriteLine("Hello Welcome to ChashLearner");
Step 6: You will see the  output in Visual Studio Command Prompt.

No comments:

Post a Comment