CompilerBase.

WarnAsError Property

Summary

Instructs the compiler to treat all warnings as errors. The default is false.
Assembly
NAnt.DotNet.dll
Namespace
NAnt.DotNet.Tasks
Containing Type
CompilerBase

Syntax

[TaskAttribute("warnaserror")]
[BooleanValidator()]
public bool WarnAsError { get; set; }

Remarks

Corresponds to the /warnaserror[+|-] flag of the compiler.

When this property is set to true, any messages that would ordinarily be reported as warnings will instead be reported as errors.

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