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.VisualCpp.Tasks.RcTask-->
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><rc> Task</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="../tasks/index.html">Task Reference</a>
21
<img alt="->" src="../images/arrow.gif" /> <rc></td>
22
<td class="NavBar-Cell" align="right">
27
<p> Compiles resources using <code>rc.exe</code>, Microsoft's Win32 resource compiler. </p>
33
<th style="text-align: center;">Type</th>
35
<th style="text-align: center;">Required</th>
38
<td valign="top" class="required">rcfile</td>
39
<td style="text-align: center;">file</td>
40
<td> The resource file to compile. </td>
41
<td style="text-align: center;">True</td>
44
<td valign="top">langid</td>
45
<td style="text-align: center;">int</td>
46
<td> Default language ID. </td>
47
<td style="text-align: center;">False</td>
50
<td valign="top">options</td>
51
<td style="text-align: center;">string</td>
52
<td> Options to pass to the compiler. </td>
53
<td style="text-align: center;">False</td>
56
<td valign="top">output</td>
57
<td style="text-align: center;">file</td>
58
<td> Output file. </td>
59
<td style="text-align: center;">False</td>
62
<td valign="top">failonerror</td>
63
<td style="text-align: center;">bool</td>
64
<td> Determines if task failure stops the build, or is just reported. The default is <b>true</b>. </td>
65
<td style="text-align: center;">False</td>
68
<td valign="top">if</td>
69
<td style="text-align: center;">bool</td>
70
<td> If <b>true</b> then the task will be executed; otherwise, skipped. The default is <b>true</b>. </td>
71
<td style="text-align: center;">False</td>
74
<td valign="top">timeout</td>
75
<td style="text-align: center;">int</td>
76
<td> The maximum amount of time the application is allowed to execute, expressed in milliseconds. Defaults to no time-out. </td>
77
<td style="text-align: center;">False</td>
80
<td valign="top">unless</td>
81
<td style="text-align: center;">bool</td>
82
<td> Opposite of <code>if</code>. If <b>false</b> then the task will be executed; otherwise, skipped. The default is <b>false</b>. </td>
83
<td style="text-align: center;">False</td>
86
<td valign="top">verbose</td>
87
<td style="text-align: center;">bool</td>
88
<td> Determines whether the task should report detailed build log messages. The default is <b>false</b>. </td>
89
<td style="text-align: center;">False</td>
93
<h3>Framework-configurable parameters</h3>
98
<th style="text-align: center;">Type</th>
100
<th style="text-align: center;">Required</th>
103
<td valign="top">exename</td>
104
<td style="text-align: center;">string</td>
105
<td> The name of the executable that should be used to launch the external program. </td>
106
<td style="text-align: center;">False</td>
109
<td valign="top">managed</td>
110
<td style="text-align: center;">
111
<a href="../enums/NAnt.Core.Types.ManagedExecution.html">ManagedExecution</a>
113
<td> Specifies whether the external program should be treated as a managed application, possibly forcing it to be executed under the currently targeted version of the CLR. </td>
114
<td style="text-align: center;">False</td>
117
<td valign="top">useruntimeengine</td>
118
<td style="text-align: center;">bool</td>
120
<i>Deprecated.</i> Specifies whether the external program is a managed application which should be executed using a runtime engine, if configured. The default is <b>false</b>. </td>
121
<td style="text-align: center;">False</td>
125
<h3>Nested Elements:</h3>
130
<<a href="../types/fileset.html">includedirs</a>>
132
<div class="nested-element"> The list of directories in which to search for include files. <p /></div>
136
</<a href="../types/fileset.html">includedirs</a>>
144
<div class="nested-element"> Macro definitions to pass to rc.exe. Each entry will generate a /d <h5><define></h5><div class="nested-element"><p> Represents an option. </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">name</td><td style="text-align: center;">string</td><td> Name of the option. </td><td style="text-align: center;">True</td></tr><tr><td valign="top">if</td><td style="text-align: center;">bool</td><td> Indicates if the option should be passed to the task. If <b>true</b> then the option will be passed; 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> Indicates if the option should not be passed to the task. If <b>false</b> then the option will be passed; otherwise, skipped. The default is <b>false</b>. </td><td style="text-align: center;">False</td></tr><tr><td valign="top">value</td><td style="text-align: center;">string</td><td> Value of the option. The default is a null reference (<b>Nothing</b> in Visual Basic). </td><td style="text-align: center;">False</td></tr></table></div></div><h5></define></h5></div>
145
<h4></defines></h4>
147
<!--NestedElementArray=T:NAnt.Core.Types.Argument-->
153
<div class="nested-element"> The command-line arguments for the external program. <p> Represents a command-line argument. </p><p> When passed to an external application, the argument will be quoted when appropriate. This does not apply to the <code>line</code> parameter, which is always passed as is. </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">dir</td><td style="text-align: center;">directory</td><td> The value for a directory-based command-line argument; will be replaced with the absolute path of the directory. </td><td style="text-align: center;">False</td></tr><tr><td valign="top">file</td><td style="text-align: center;">file</td><td> The name of a file as a single command-line argument; will be replaced with the absolute filename of the file. </td><td style="text-align: center;">False</td></tr><tr><td valign="top">if</td><td style="text-align: center;">bool</td><td> Indicates if the argument should be passed to the external program. If <b>true</b> then the argument will be passed; otherwise, skipped. The default is <b>true</b>. </td><td style="text-align: center;">False</td></tr><tr><td valign="top">line</td><td style="text-align: center;">string</td><td> List of command-line arguments; will be passed to the executable as is. </td><td style="text-align: center;">False</td></tr><tr><td valign="top">path</td><td style="text-align: center;"><path></td><td> The value for a PATH-like command-line argument; you can use <code>:</code> or <code>;</code> as path separators and NAnt will convert it to the platform's local conventions, while resolving references to environment variables. </td><td style="text-align: center;">False</td></tr><tr><td valign="top">unless</td><td style="text-align: center;">bool</td><td> Indicates if the argument should not be passed to the external program. If <b>false</b> then the argument will be passed; otherwise, skipped. The default is <b>false</b>. </td><td style="text-align: center;">False</td></tr><tr><td valign="top">value</td><td style="text-align: center;">string</td><td> A single command-line argument; can contain space characters. </td><td style="text-align: center;">False</td></tr></table></div><h3>Nested Elements:</h3><!--Element--><h4><a id="path"></a>
154
<<a href="../types/path.html">path</a>>
155
</h4><div class="nested-element"> Sets a single command-line argument and treats it like a PATH - ensures the right separator for the local platform is used. <p /></div><h4><a id="path"></a>
156
</<a href="../types/path.html">path</a>>
157
</h4><h3>Examples</h3><ul class="examples"><li><p> A single command-line argument containing a space character. </p><pre class="code">
158
<arg value="-l -a" />
159
</pre></li><li><p> Two separate command-line arguments. </p><pre class="code">
160
<arg line="-l -a" />
161
</pre></li><li><p> A single command-line argument with the value <code>\dir;\dir2;\dir3</code> on DOS-based systems and <code>/dir:/dir2:/dir3</code> on Unix-like systems. </p><pre class="code">
162
<arg path="/dir;/dir2:\dir3" />
163
</pre></li></ul></div>
170
<ul class="examples">
172
<p> Compile <code>text.rc</code> to <code>text.res</code> using the default options. </p>
174
<rc rcfile="text.rc" output="text.res" />
178
<p> Compile <code>text.rc</code>, passing an additional option. </p>
180
<rc rcfile="text.rc" options="/r"/>
184
<h3>Requirements</h3>
185
<div style="margin-left: 20px;">
186
<b>Assembly:</b> NAnt.VisualCppTasks (0.90.3780.0)
b'\\ No newline at end of file'