Using Visual Studio Command Prompt Compiling files togehter csc /t:exe /out:MyProgram.exe MyMainClass.cs MyClass.cs or csc /t:exe /out:MyProgram.exe *.cs