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.
csc file1.cs file2.cs file3.csto compile the program. If the compilation succeeds and if the file named file1.cs is the file which contained the static method named Main then the program can be executed by typing
csc /r:Views.dll file1.cs file2.cs file3.csto compile the program. The Views.dll file must also be present in the same folder when you execute the program. (The Views.dll file can be downloaded or compiled from the source code, all of which can be downloaded from the Views website.)