NAnt SDK Documentation - v0.92

WarningAsError.Excludes Property

Specifies a list of warnings that the compiler should NOT treat as errors. This is only useful if WarnAsError is true. Only supported when targeting .NET 2.0 or higher.

[Visual Basic]
<BuildElementArray(ElementType:=null, Name:="exclude", Required:=False, ProcessXml:=True)>
Public ReadOnly Property Excludes As CompilerWarningCollection
[C#]
[BuildElementArray(ElementType=null, Name="exclude", Required=False, ProcessXml=True)]
public CompilerWarningCollection Excludes {get;}

See Also

WarningAsError Class | NAnt.DotNet.Types Namespace