I am trying to create a super basic consol application why does the consol display for less then half a second and then exit?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MyHelloWorldApplication
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Test");
}
}
}
You are doing nothing after the
Console.Writeline()method so the app will close.Adding a
Console.ReadKey()will stop the app from closing until you have pressed a key.