CscTask.

Optimize Property

Summary

Specifies whether the compiler should perform optimizations to the make output files smaller, faster, and more efficient. The default is false.
Assembly
NAnt.DotNet.dll
Namespace
NAnt.DotNet.Tasks
Containing Type
CscTask

Syntax

[TaskAttribute("optimize")]
[BooleanValidator()]
public bool Optimize { get; set; }

Remarks

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

Attributes

Type Description
TaskAttributeAttribute Indicates that property should be treated as a XML attribute for the task.
BooleanValidatorAttribute Used to indicate that a property should be able to be converted into a bool.

Value

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