NAnt
![]() ![]() ![]() |
v0.85 |
[This is preliminary documentation and subject to change.]
Controls the behaviour of a compiler with regards to the reporting of warnings.
Attribute | Type | Description | Required |
---|---|---|---|
id | string | The ID used to be referenced later. | False |
refid | string | The ID to use as the reference. | False |
warnaserror
attribute. Only supported when targeting .NET 2.0 or higher. Contains a collection of CompilerWarning elements.
warnaserror
is true. Only supported when targeting .NET 2.0 or higher. Contains a collection of CompilerWarning elements.
Instruct a compiler to report warning 0519 as an error.
<warnaserror> <include number="0519" /> </warnaserror>
Instruct a compiler not to report warning 0519 as an error, if the release
property is true.
<warnaserror> <exclude number="0519" if="${release}" /> </warnaserror>