This is preliminary documentation and subject to change. To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
/main (Specify Location of Sub Main Procedure)
Specifies the class or module that contains the Sub Main procedure.
/main:namespace.location
Arguments
namespace.location
This argument can be either the name of a module or a class that contains the Sub Main procedure.
Remarks
Use this option when creating an executable or Windows executable program. If the /main option is omitted, the compiler will search for a valid Shared Sub Main in all public classes and modules.
Example
Compile t2.vb and t3.vb, specifying that the Sub Main procedure will be found in the Test2 class: