Flags Property

NAnt SDK Documentation - v0.92 |

# IlasmTask.Flags Property

Instructs the compiler to set the Flags value in the CLR header.

[Visual Basic]
<Int32Validator(MinValue:=-2147483648, MaxValue:=2147483647, Base:=10), _ TaskAttribute(Name:="flags", Required:=False, ExpandProperties:=True, ProcessXml:=True)>
Public Property Flags As Integer
[C#]
[Int32Validator(MinValue=-2147483648, MaxValue=2147483647, Base=10)]
[TaskAttribute(Name="flags", Required=False, ExpandProperties=True, ProcessXml=True)]
public int Flags {get; set;}

#### Property Value

An Int32 that represents the Flags value to set in the CLR header. The most frequently value are 1 (pre-IL code) and 2 (mixed code). The third bit indicating that the PE file is strong signed, is ignored.

#### Remarks

Corresponds to the `/FLAGS` flag.

#### See Also

IlasmTask Class | NAnt.DotNet.Tasks Namespace