[Csharp] using System; class Program {public static void Main () {Console. writeLine ("HelloWorld. ") ;}} install it first. in the. NET Framework SDK environment, open the command prompt tool under the VS menu of all programs in the Start button and save the above Code to its root directory. The command is hello. cs, and then enter: csc hello. cs. CSC.exe compiles Visual C # program code into an IL file, which has many parameters and switch options. Command Line example to compile File. cs to generate File.exe: csc File. cs compiles File. cs to generate File. dll: csc/target: library File. cs compiles File. cs and create My.exe: csc/out: My.exe File. cs compiles all C # files in the current directory by optimizing and defining the DEBUG symbol. The output is File2.exe: csc/define: DEBUG/optimize/out: File2.exe *. cs. compile all the C # files in the current directory to generate the debugging version of File2.dll. No logo or warning is displayed: csc/target: library/out: File2.dll/warn: 0/nologo/debug *. cs compiles all C # files in the current directory into Something. xyz (a DLL): csc/target: library/out: Something. xyz *. cs