Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

resgen(1) [suse man page]

resgen(resgen 1.0)														resgen(resgen 1.0)

NAME
resgen, resgen2 - Mono/CLI Resource Generator SYNOPSIS
resgen source.ext [dest.ext] resgen /compile source.ext[,dest.resources] [...] resgen2 DESCRIPTION
Convert a resource file from one format to another. The currently supported formats are text, resources, resx and po. .txt, .text Used to process text files, the format of the text file is of the form: key=value The value argument can contain special characters as long as they are escaped. The escape sequences currently supported are , , , \ (to get the escape sequence itself) and with resgen2 unicode escape sequences are supported with the uXXXX escape sequence, where XXXX is a four digit number. Lines that start with the # or ; character are considered comments and ignored. '.resources' This is the binary file format implemented by the System.Resources.ResourceReader class, part of mscorlib.dll '.resx' This is the binary file format implemented by the System.Resources.ResXResourceReader class. This class is not part of mscor- lib.dll, this class is part of System.Windows.Forms. '.po'. PO files are the source files used by the Unix gettext infrastructure that is typically used to internationalize applications. Lines starting with the '#' character are comment lines. The file contains many instance of strings like this: msgid KEY msgstr VALUE The KEY is typically the string to translate and the VALUE is the translation. On PO files instead of using codes as the KEY (as it is customary with resource files) the KEY is typically a complete english message that applications embed in their source code and will be used as a fallback if no translation resources are used. Since resources are key value pairs, the extended features in PO files are not supported (plurals and support for N-cases). To learn more about the po file format, use your info browser and point it to the "(gettext)PO Files" node. If the destination file is not specified, source.resources will be used. The /compile option takes a list of .resX or .txt files to convert to the output file name. OPTIONS
-compile This switch instructs resgen to compile multiple files. It must appear before any resources are specified on the command line. -usesourcepath This option is only available for resgen2, and it instructs resgen to resolve relative paths using the directory of the resx file as current directory. FILES
This program will load referenced assemblies from the Mono assembly cache. MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-devel-list for details. WEB SITE
Visit: http://www.mono-project.com for details SEE ALSO
mcs(1),mono(1),mono-config(5). resgen(resgen 1.0)

Check Out this Related Man Page

lc(Mono 2.6)															      lc(Mono 2.6)

NAME
lc - Mono License Compiler SYNOPSIS
lc -c filename -t targetassembly [-i reference...] [-v] [-o outputpath] [-nologo] DESCRIPTION
lc tool is a license compiler for Mono. It's used to convert a licenses.licx file to a resource that can be embedded into an executable. When using commercial components for .NET they often require a license resource at runtime to make sure the developer was licensed to use this control. The most common way of making sure the component was properly licensed is by using license resources. At compile time the developer uses the lc tool to convert a licenses.licx file to a programname.exe.licenses file and embed that as a managed resource during compilation. RUNTIME OPTIONS
The following options are available: --complist=filename, -c filename This option is used to specify the input file, the licenses.licx file to create a license reesource for. This option is required. The license compiler will read each line in this file and try to load the types specified on that line. --target=assemblyname, -t targetassembly full assembly name with file extension for the target assembly. The license compiler uses this as a key when compiling the licenses. It has to match the assembly the resource will be embedded in. This option is required. --load=reference, -i reference Assembly reference to load before trying to compile a license. This option is needed for assemblies where the references are not in the gac. Compilers should pass all references to the license compiler. --verbose,, -v Gives more verbose output about the license compiling process. --help, -h Displays usage instructions. --outdir=path, -o path Target path file the licenses resource. By default the license compiler emits the resource in the current directory. The filename will always match the target assembly passed to --target with .licenses added. --nologo Do not emit the "Mono License Compiler" logo on stdout while compilng. LICENSE FILES
The format for the license files (licenses.licx) is the following: # comment namespace.type, assemblyname namespace.type, full-assemblyname All lines starting with a # are ignored. the first form requires that the assembly was loaded through the --load,-i option but does not require the full assembly name, only the first part. The second form requires the full assembly name including locale, version and publickeytoken. MAILING LISTS
Mailing lists are listed at the http://www.mono-project.com/Mailing_Lists WEB SITE
http://www.mono-project.com SEE ALSO
mono(1), mcs(1) lc(Mono 2.6)
Man Page