You have to add references when you compile the application:
Try this command:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\vbc
or
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc
This will give you the default help screen for the compiler. In there are all the switches you can use compile your application the way you need.
-
Peter