NAnt SDK Documentation - v0.92

VjcTask Class

Compiles Visual J# programs using vjc, Microsoft's J# compiler.

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

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

[Visual Basic]
<ProgramLocation(LocationType:=LocationType.FrameworkDir), _  TaskName(Name:="vjc")>
Public Class VjcTask
    Inherits CompilerBase
[C#]
[ProgramLocation(LocationType=LocationType.FrameworkDir)]
[TaskName(Name="vjc")]
public class VjcTask : 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.

Remarks

Note    In order to have VjcTask generate manifest resource names that match those generated by Microsoft Visual Studio.NET, the value of the Prefix attribute of the <ResourcesList> element should match the "Default Package" of the J#.NET project, and the value of the DynamicPrefix attribute should be set to "true".

Example

Compile a "HelloWorld" application, including embedded resources.

    
<vjc target="exe" output="helloworld.exe" debug="true">
    <sources>
        <include name="helloworld.jsl" />
    </sources>
    <resources prefix="HelloWorld" dynamicprefix="true">
        <include name="**/*.resx" />
    </resources>
    <references>
        <include name="System.dll" />
        <include name="System.Data.dll" />
        <include name="System.Drawing.dll" />
        <include name="System.Windows.Forms.dll" />
        <include name="System.Xml.dll" />
    </references>
</vjc>
    
  

Requirements

Namespace: NAnt.DotNet.Tasks

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

See Also

VjcTask Members | NAnt.DotNet.Tasks Namespace