NAnt SDK Documentation - v0.92

JscTask Class

Compiles JScript.NET programs.

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

System.Object
   NAnt.Core.Element
      NAnt.Core.Task
         NAnt.Core.Tasks.ExternalProgramBase
            NAnt.DotNet.Tasks.CompilerBase
               NAnt.DotNet.Tasks.JscTask

[Visual Basic]
<TaskName(Name:="jsc"), _  ProgramLocation(LocationType:=LocationType.FrameworkDir)>
Public Class JscTask
    Inherits CompilerBase
[C#]
[TaskName(Name="jsc")]
[ProgramLocation(LocationType=LocationType.FrameworkDir)]
public class JscTask : CompilerBase

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 helloworld.js to helloworld.exe.

    
<jsc target="exe" output="helloworld.exe" debug="true">
    <sources>
        <include name="helloworld.js" />
    </sources>
</jsc>
    
  

Requirements

Namespace: NAnt.DotNet.Tasks

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

See Also

JscTask Members | NAnt.DotNet.Tasks Namespace