Hello World Application in C#
1.
Start Visual
Studio.
2. On the menu bar,
choose File, New, Project. The New Project dialog box opens.
3. Expand Installed, expand Templates, expand Visual C#, and then choose Console Application.
4. In the Name box, specify a name for your project, and then choose the OK button. The new project appears in Solution Explorer.
5. If Program.cs isn't
open in the Code Editor, open the shortcut menu for Program.cs in Solution Explorer, and then choose View Code.
6. Replace the
contents of Program.cs with the following code.
7.
Choose the F5 key
to run the project. A Command Prompt window appears that contains the line Hello World!
using System;
namespace HelloWorld
{
class Hello
{
static void Main()
{
Console.WriteLine("Hello World!");
Console.WriteLine("Manav Pandya");
Console.WriteLine(“Press Enter Key to Stop Debugging.”);
Console.ReadKey();
}
}
}
What is C# , ASP.NET , MVC , AngularJS , Hello World , First Applicatio , First project in C# , Wordpress , Bootstrap