NAnt SDK Documentation - v0.92

CompilerBase.WarnAsError Property

Instructs the compiler to treat all warnings as errors. The default is false.

[Visual Basic]
<TaskAttribute(Required:=False, Name:="warnaserror", ExpandProperties:=True, ProcessXml:=True), _  BooleanValidator>
Public Property WarnAsError As Boolean
[C#]
[TaskAttribute(Required=False, Name="warnaserror", ExpandProperties=True, ProcessXml=True)]
[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.

See Also

CompilerBase Class | NAnt.DotNet.Tasks Namespace