NAnt SDK Documentation - v0.85-nightly-2005-11-09

ClTask Class

[This is preliminary documentation and subject to change.]

Compiles C/C++ programs using cl.exe, Microsoft's C/C++ compiler.

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

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

[Visual Basic]
<TaskName(Name:="cl")>
Public Class ClTask
    Inherits ExternalProgramBase
[C#]
[TaskName(Name="cl")]
public class ClTask : 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.

Remarks

This task is intended for version 13.00.9466 of cl.exe.

Example

Compiles helloworld.cpp for the Common Language Runtime.

                
            <cl outputdir="build" options="/clr">
                <sources>
                    <include name="helloworld.cpp" />
                </sources>
            </cl>
                
              

Requirements

Namespace: NAnt.VisualCpp.Tasks

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

See Also

ClTask Members | NAnt.VisualCpp.Tasks Namespace