NAnt SDK Documentation - v0.85-nightly-2005-11-09

CscTask.Optimize Property

[This is preliminary documentation and subject to change.]

Specifies whether the compiler should perform optimizations to the make output files smaller, faster, and more effecient. The default is false.

[Visual Basic]
<BooleanValidator, _  TaskAttribute(Required:=False, Name:="optimize", ExpandProperties:=True, ProcessXml:=True)>
Public Property Optimize As Boolean
[C#]
[BooleanValidator]
[TaskAttribute(Required=False, Name="optimize", ExpandProperties=True, ProcessXml=True)]
public bool Optimize {get; set;}

Property Value

true if the compiler should perform optimizations; otherwise, false.

Remarks

Corresponds with the /optimize[+|-] flag.

See Also

CscTask Class | NAnt.DotNet.Tasks Namespace