NAnt SDK Documentation - v0.92

LinkTask Class

Links files using link.exe, Microsoft's Incremental Linker.

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

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

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

Example

Combine all object files in the current directory into helloworld.exe.

    
<link output="helloworld.exe">
    <sources>
        <include name="*.obj" />
    </sources>
</link>
    
  

Requirements

Namespace: NAnt.VisualCpp.Tasks

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

See Also

LinkTask Members | NAnt.VisualCpp.Tasks Namespace