NAnt SDK Documentation - v0.92

ResGenTask Class

Converts files from one resource format to another.

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

System.Object
   NAnt.Core.Element
      NAnt.Core.Task
         NAnt.Core.Tasks.ExternalProgramBase
            NAnt.DotNet.Tasks.ResGenTask

[Visual Basic]
<ProgramLocation(LocationType:=LocationType.FrameworkSdkDir), _  TaskName(Name:="resgen")>
Public Class ResGenTask
    Inherits ExternalProgramBase
[C#]
[ProgramLocation(LocationType=LocationType.FrameworkSdkDir)]
[TaskName(Name="resgen")]
public class ResGenTask : 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

Note    If no ToDirectory is specified, the resource file will be created next to the input file.

Example

Convert a resource file from the .resx to the .resources format.

    
<resgen input="translations.resx" output="translations.resources" />
    
  

Convert a set of .resx files to the .resources format.

    
<resgen todir=".">
    <resources>
        <include name="*.resx" />
    </resources>
</resgen>
    
  

Requirements

Namespace: NAnt.DotNet.Tasks

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

See Also

ResGenTask Members | NAnt.DotNet.Tasks Namespace