NAnt SDK Documentation - v0.92

RcTask Class

Compiles resources using rc.exe, Microsoft's Win32 resource compiler.

For a list of all members of this type, see RcTask Members.

System.Object
   NAnt.Core.Element
      NAnt.Core.Task
         NAnt.Core.Tasks.ExternalProgramBase
            NAnt.VisualCpp.Tasks.RcTask

[Visual Basic]
<TaskName(Name:="rc")>
Public Class RcTask
    Inherits ExternalProgramBase
[C#]
[TaskName(Name="rc")]
public class RcTask : ExternalProgramBase

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Example

Compile text.rc to text.res using the default options.

    
<rc rcfile="text.rc" output="text.res" />
    
  

Compile text.rc, passing an additional option.

    
<rc rcfile="text.rc" options="/r"/>
    
  

Requirements

Namespace: NAnt.VisualCpp.Tasks

Assembly: NAnt.VisualCppTasks (in NAnt.VisualCppTasks.dll)

See Also

RcTask Members | NAnt.VisualCpp.Tasks Namespace