NAnt SDK Documentation - v0.92

IlasmTask.Alignment Property

Instructs the compiler to set the FileAlignment value in the PE header.

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

Property Value

An Int32 that represents the FileAlignment value to set in the PE header. The value must be a power of 2, in range from 512 to 65536.

Remarks

Corresponds to the /ALIGNMENT flag.

See Also

IlasmTask Class | NAnt.DotNet.Tasks Namespace