NAnt SDK Documentation - v0.92

CompilerBase.MainType Property

Specifies which type contains the Main method that you want to use as the entry point into the program.

[Visual Basic]
<TaskAttribute(Required:=False, Name:="main", ExpandProperties:=True, ProcessXml:=True)>
Public Property MainType As String
[C#]
[TaskAttribute(Required=False, Name="main", ExpandProperties=True, ProcessXml=True)]
public string MainType {get; set;}

Remarks

Corresponds to the /m[ain]: flag of the compiler.

Use this property when creating an executable file. If this property is not set, the compiler searches for a valid Main method in all public classes.

See Also

CompilerBase Class | NAnt.DotNet.Tasks Namespace