MainMethod Property

NAnt SDK Documentation - v0.92 |

# AssemblyLinkerTask.MainMethod Property

Specifies the fully-qualified name (class.method) of the method to use as an entry point when converting a module to an executable file.

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

#### Property Value

The fully-qualified name (class.method) of the method to use as an entry point when converting a module to an executable file.

#### See Also

AssemblyLinkerTask Class | NAnt.DotNet.Tasks Namespace