Compile C# program from command line

You can compile this program by simply running the C#
command-line compiler (csc.exe) against the source
file, like csc test.cs . If you want to compile code from the command line using the csc command, you should be aware that the .NET command-line
tools, including csc, are only available if certain
environment variables have been set up.
 

Continue reading