Compiling and Running C# Programs on Windows with Views

Suppose that we have a C# program which comprises three files named file1.cs, file2.cs, and file3.cs; also suppose that this program creates one of more instances of the Views.Form class for displaying GUIs.

The simplest way to compile and run your program is by typing commands into a Windows command window. (The alternative would be to use an interactive development environment, or IDE, such as Visual Studio.) A command window can be created on a Windows/XP system by selecting Start/Run... and entering cmd as the name of the program to run. You can then use the cd command to change to the directory (i.e. folder) which contains the program source code files. For example, typing

cd "C:\Documents and Settings\MyAccount\My Documents\programs"
is an example of how to use that command.