To compile any program via a compiler, firstly we need to edit the environment variables.
Adding the path of CSC.exe ( C sharp compiler ) is troublesome if you really don't know where it resides.
In Windows 8 the path for the compiler is as follows.
"C:\Windows\Microsoft.NET\Framework64\v4.0.30319"