Usage:
C:\> CSharpTest.Net.Generators.exe COMMAND [arguments]
Code generation utility currently containing code generators for ResX files. Currently the following types of code generation are possible:
- Produce un-typed format methods from string that contain format arguments like '{0}'.
- Optionally produce strongly typed format methods from format string.
- Produce Exception classes from format strings by a simple naming convention: ending the identifier with "Exception".
- Generate ".mc" files directly from a ResX file or from one or more embedded in a project.
- Generate a complete message assembly for use with the Event Viewer from a project's ResX file(s).
- Generate a resource script ".rc" or compiled Win32 resource file ".res" from a project's ResX file(s).
Commands:
Config
Writes a default CmdTool.config for this toolset to the console.
Usage:C:\> CSharpTest.Net.Generators.exe CONFIG
Help
Gets the help for a specific command or lists available commands.
Usage:C:\> CSharpTest.Net.Generators.exe HELP [[/name=]String] [/html]Arguments:
- [[/name=]String] - The name of the command or option to show help for.
- [/html] = (False) - Output the full help content to HTML and view in the local browser.
ProjectResX
Generates the message files from a project and injects them into the project.
Usage:C:\> CSharpTest.Net.Generators.exe PROJECTRESX [/csproj=]String [[/name=]String] [[/versionInfo=]String] [[/tools=]String]Arguments:
- [/csproj=]String - The csproj to generate message file for.
- [[/name=]String] = (Resources) - The relative path and name of the generated resource files.
- [[/versionInfo=]String] - A csproj containing or an AssemblyInfo.cs file -- or -- a dll to extract version info from.
- [[/tools=]String] - The directory used to locate the mc.exe and rc.exe command line tools.
ResX
Generates strongly typed resources from .resx files with formatting and exceptions.
Usage:C:\> CSharpTest.Net.Generators.exe RESX [/input=]String [/namespace=]String [/class=]String [[/resxNamespace=]String] [/public] [/partial] [/test] [/sealed] [[/base=]String]Arguments:
- [/input=]String - The input resx file to generate resources from.
- [/namespace=]String - The resulting namespace to use when generating resource classes.
- [/class=]String - The name of the containing class to use for the generated resources.
- [[/resxNamespace=]String] - The namespace that the resource file will be embedded with.
- [/public] = (False) - Determines if the output resource class should be public or internal.
- [/partial] = (True) - Makes generated resource classes partial.
- [/test] = (True) - Attempts to run String.Format over all formatting strings.
- [/sealed] = (False) - Generates exceptions as sealed classes.
- [[/base=]String] = (System.ApplicationException) - The default base exception to derive from.
ResXtoMc
Generates a Windows event log message file from a resx input file.
Usage:C:\> CSharpTest.Net.Generators.exe RESXTOMC [/output=]String [/input=]String[]Arguments:
- [/output=]String - The target file path of the mc file to generate.
- [/input=]String[] - The file path of either a resx file, or a project to scan for resx files within.
ResXtoMessageDll
Generates and compiles a Windows event log message assembly.
Usage:C:\> CSharpTest.Net.Generators.exe RESXTOMESSAGEDLL [/output=]String [/input=]String[] [[/intermediate=]String] [[/versionInfo=]String] [[/namespace=]String] [[/tools=]String] [[/csc=]String]Arguments:
- [/output=]String - The target assembly name to generate.
- [/input=]String[] - The file path of either a resx file, or a project to scan for resx files within.
- [[/intermediate=]String] = (%TEMP%) - A directory used for intermediate files.
- [[/versionInfo=]String] - A csproj containing or an AssemblyInfo.cs file -- or -- a dll to extract version info from.
- [[/namespace=]String] - The namespace to use for the embedded constants and install utility classes.
- [[/tools=]String] - The directory used to locate the mc.exe and rc.exe command line tools.
- [[/csc=]String] = () - Additional options to provide to the csc command line compiler.