CSharpTest.Net
CSharpTest.Net.Generators.exe Overview
Send Feedback Download Help File
Command-Line Tools > CSharpTest.Net.Generators.exe Overview

Glossary Item Box

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:

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.
Generated with Document! X 2011 by Innovasys