NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Resource File Generator Utility (ResGen.exe)

ResGen is a resource file generator utility that reads text files containing name/value pairs and produces a NGWS runtime binary “.resources” file.

Lines that begin with the character ‘#’ are assumed to be comments. Each name/value pair should be specified on a separate line as follows:

name=value

ResGen checks the text file for duplicate resource names.

Syntax

ResGen filename [OutputFilename]
Argument Description
filename Name of the text file containing the name/value pairs of the resources. If Filename does not have the extension .txt, ResGen looks for a file name obtained by appending the string .txt to filename.
OutputFilename Name of the resource file to be created. If no name is given, resgen uses the name of the text file given in filename, appends a .resources extension, and writes the file to the directory containing filename.

Remarks

ResGen generates a binary “.resources” file that contains simple, name/value pairs that are read from a text file. To create more complex “.resource” files (containing, for example, bitmaps, windows, and icons) use the ResourceWriter class.

Examples

The following displays a description of the command and exits.

ResGen

The following reads the name/value pairs in myResources.txt and writes a binary resources file named myResources.resources.

ResGen myResources.txt

The following reads the name/value pairs in myResources.txt and writes a binary resources file named myResources.resources.

ResGen myResources

See Also

ResX Resource Compiler (ResXToResources.exe)