1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
<!-- Documenting T:NAnt.DotNet.Types.WarningAsError-->
5
<meta http-equiv="Content-Language" content="en-ca" />
6
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
<link rel="stylesheet" type="text/css" href="../style.css" />
8
<title><warnaserror> Type</title>
11
<table width="100%" border="0" cellspacing="0" cellpadding="2" class="NavBar">
13
<td class="NavBar-Cell">
14
<a href="http://nant.sourceforge.net">
17
<img alt="->" src="../images/arrow.gif" />
18
<a href="../index.html">Help</a>
19
<img alt="->" src="../images/arrow.gif" />
20
<a href="../types/index.html">Type Reference</a>
21
<img alt="->" src="../images/arrow.gif" /> <warnaserror></td>
22
<td class="NavBar-Cell" align="right">
26
<h1><warnaserror></h1>
27
<p> Controls the behaviour of a compiler with regards to the reporting of warnings. </p>
33
<th style="text-align: center;">Type</th>
35
<th style="text-align: center;">Required</th>
38
<td valign="top">id</td>
39
<td style="text-align: center;">string</td>
40
<td> The ID used to be referenced later. </td>
41
<td style="text-align: center;">False</td>
44
<td valign="top">refid</td>
45
<td style="text-align: center;">string</td>
46
<td> The ID to use as the reference. </td>
47
<td style="text-align: center;">False</td>
51
<h3>Nested Elements:</h3>
53
<!--NestedElementArray=T:NAnt.DotNet.Types.CompilerWarning-->
59
<div class="nested-element"> Specifies a list of warnings that the compiler should treat as errors. This overrides the <code>warnaserror</code> attribute. Only supported when targeting .NET 2.0 or higher. <p> Represents a compiler warning. </p><h3>Parameters</h3><div class="table"><table><tr><th>Attribute</th><th style="text-align: center;">Type</th><th>Description</th><th style="text-align: center;">Required</th></tr><tr><td valign="top" class="required">number</td><td style="text-align: center;">string</td><td> A warning number, or comma-separated list of warnings, that you want the compiler to suppress or report. </td><td style="text-align: center;">True</td></tr><tr><td valign="top">if</td><td style="text-align: center;">bool</td><td> If <b>true</b> then the element will be processed; otherwise, skipped. The default is <b>true</b>. </td><td style="text-align: center;">False</td></tr><tr><td valign="top">unless</td><td style="text-align: center;">bool</td><td> If <b>true</b> then the element will be skipped; otherwise, processed. The default is <b>false</b>. </td><td style="text-align: center;">False</td></tr></table></div></div>
66
<!--NestedElementArray=T:NAnt.DotNet.Types.CompilerWarning-->
72
<div class="nested-element"> Specifies a list of warnings that the compiler should NOT treat as errors. This is only useful if <code>warnaserror</code> is <b>true</b>. Only supported when targeting .NET 2.0 or higher. <p> Represents a compiler warning. </p><h3>Parameters</h3><div class="table"><table><tr><th>Attribute</th><th style="text-align: center;">Type</th><th>Description</th><th style="text-align: center;">Required</th></tr><tr><td valign="top" class="required">number</td><td style="text-align: center;">string</td><td> A warning number, or comma-separated list of warnings, that you want the compiler to suppress or report. </td><td style="text-align: center;">True</td></tr><tr><td valign="top">if</td><td style="text-align: center;">bool</td><td> If <b>true</b> then the element will be processed; otherwise, skipped. The default is <b>true</b>. </td><td style="text-align: center;">False</td></tr><tr><td valign="top">unless</td><td style="text-align: center;">bool</td><td> If <b>true</b> then the element will be skipped; otherwise, processed. The default is <b>false</b>. </td><td style="text-align: center;">False</td></tr></table></div></div>
81
<p> Instruct a compiler to report warning 0519 as an error. </p>
84
<include number="0519" />
89
<p> Instruct a compiler not to report warning 0519 as an error, if the <code>release</code> property is <b>true</b>. </p>
92
<exclude number="0519" if="${release}" />
98
<div style="margin-left: 20px;">
99
<b>Assembly:</b> NAnt.DotNetTasks (0.90.3780.0)
b'\\ No newline at end of file'