Thursday, April 10, 2014

How To Create a Hello World in a Console Application using C# dotnet with Visual Studio




In this section i will create a small application . this application show only "Hellow world " into the console .

Steps:
  1. Start Microsoft Visual Studio 2008
  2. Click File>New>Project
You will see the following window.

3. Select Windows>Console Application   

4.Write appropriate name in ‘Name’ box, change the destination folder of the project directory by clicking the ‘Browse’ button  

5. Click OK button
6. Then you See The Code

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WalkThrough1
{
    class Program
    {
        static void Main(string[] args)
        {
        }
    }
}



     7 . Then Write The following Code inside the Main Method :
             Console.WriteLine("Hello world");
               Console.ReadKey();
     8. Now Press F5 to Run This .
    9. Then You Can See The  Output in Black Screen .
     
     


 

 





No comments:

Post a Comment