Summary
Specifies which type contains the Main method that you want to use
as the entry point into the program.
- Assembly
- NAnt
.DotNet .dll - Namespace
- NAnt
.DotNet .Tasks - Containing Type
- CompilerBase
Syntax
[TaskAttribute("main")]
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.
Attributes
Type | Description |
---|---|
Task |
Indicates that property should be treated as a XML attribute for the task. |
Value
Type | Description |
---|---|
string |