NGWS SDK Documentation  

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 Main Method)

/main:class

where:

class
The type that contains the Main method.

Remarks

If your compilation includes more than one type with a Main method, you can specify which type contains the Main method that you want to use as the entry point into the program.

This option is for use when compiling a .exe.

Example

Compile t2.cs and t3.cs, specifying that the Main method will be found in Test2:

csc t2.sc t3.sc /main:Test2

See Also

C# Compiler Options