NAnt SDK Documentation - v0.92

CscTask.WarningLevel Property

Specifies the warning level for the compiler to display. Valid values are 0-4. The default is 4.

[Visual Basic]
<Int32Validator(MinValue:=0, MaxValue:=4, Base:=10), _  TaskAttribute(Name:="warninglevel", Required:=False, ExpandProperties:=True, ProcessXml:=True)>
Public Property WarningLevel As String
[C#]
[Int32Validator(MinValue=0, MaxValue=4, Base=10)]
[TaskAttribute(Name="warninglevel", Required=False, ExpandProperties=True, ProcessXml=True)]
public string WarningLevel {get; set;}

Property Value

The warning level for the compiler to display.

Remarks

Corresponds with the /warn flag.

See Also

CscTask Class | NAnt.DotNet.Tasks Namespace