text:  8.x:
  resgen
  You can also use the
  /? switch:
  resgen /? for Visual Studio (or the Visual Studio Command Prompt in Windows 7). For more information, see Command Prompts.
  At the command prompt, type the following:
  Syntax
  resgen [/define:symbol1[,symbol2,...]] [/useSourcePath] filename.extension | /compile filename.extension... [outputFilename.extension] [/r:assembly] [/str:lang[,namespace[,class[,file]]] [/publicclass]]
  resgen filename.extension [outputDirectory]
  Parameters
  Resgen.exe and Resource File Types
  In order for Resgen.exe to successfully convert resources, text and .resx files must follow the correct format.
  Text (.txt and .restext) Files.
  Note
  For information about the format of .txt and .restext files, see the "Resources in Text Files" section of Creating Resource Files..
  .resx Files.
  Converting Between Resources File Types.
  Performing Specific Resgen.exe Tasks
  Compiling Resources into a Binary File:
  resgen inputFilename [outputFilename]
  where the parameters are:
  inputFilename
  The file name, including the extension, of the resource file to compile. Resgen.exe only compiles files with extensions of .txt, .restext, or .resx.
  outputFilename
  The name of the output file. If you omit
  outputFilename, Resgen.exe creates a .resources file with the root file name of
  inputFilename in the same directory as
  inputFilename. If
  outputFilename includes a directory path, the directory must exist.
  You provide a fully qualified namespace for the .resources file by specifying it in the file name and separating it from the root file name by a period. For example, if
  outputFilename is
  MyCompany.Libraries.Strings.resources, the namespace is MyCompany.Libraries.
  The following command reads the name/value pairs in Resources.txt and writes a binary .resources file named Resources.resources. Because the output file name is not specified explicitly, it receives the same name as the input file by default.
  resgen Resources.txt
  The following command reads the name/value pairs in Resources.restext and writes a binary resources file named StringResources.resources.
  resgen Resources.restext StringResources.resources
  The following command reads an XML-based input file named Resources.resx and writes a binary .resources file named Resources.resources.
  resgen Resources.resx Resources.resources
  Converting Between Resource File Types 8.x Store apps.
  The following command reads a binary resources file Resources.resources and writes an XML-based output file named Resources.resx.
  resgen Resources.resources Resources.resx
  The following command reads a text-based resources file named StringResources.txt and writes an XML-based resources file named LibraryResources.resx. In addition to containing string resources, the .resx file could also be used to store non-string resources.
  resgen StringResources.txt LibraryResources.resx
  The following two commands read an XML-based resources file named Resources.resx and write text files named Resources.txt and Resources.restext. Note that if the .resx file contains any embedded objects, they will not be accurately converted into the text files.
  resgen Resources.resx Resources.txt resgen Resources.resx Resources.restext
  Compiling or Converting Multiple Files
  You can use the
  /compile switch to convert a list of resource files from one format to another in a single operation. The syntax is:
  resgen /compile filename.extension [filename.extension...]
  The following command compiles three files, StringResources.txt, TableResources.resw, and ImageResources.resw, into separate .resources files named StringResources.resources, TableResources.resources, and ImageResources.resources.
  resgen /compile StringResources.txt TableResources.resx ImageResources.resx
  Exporting Resources to a .resw File
  If you're developing a Windows 8.x Store app, you may want to use resources from an existing desktop app. However, the two kinds of applications support different file formats. In desktop apps, resources in text (.txt or .restext) or .resx files are compiled into binary .resources files. In Windows 8.x 8.x Store app.
  Important
  Visual Studio automatically handles all conversions necessary for incorporating the resources in a portable library into a Windows 8.x Store app. Using Resgen.exe directly to convert the resources in an assembly to .resw file format is of interest only to developers who want to develop a Windows 8.x Store app outside of Visual Studio.
  The syntax to generate .resw files from an assembly is:
  resgen filename.extension [outputDirectory]
  where the parameters are:
  filename.extension
  The name of a .NET Framework assembly (an executable or .DLL). If the file contains no resources, Resgen.exe does not create any files.
  outputDirectory
  The existing directory to which to write the .resw files. If
  outputDirectory is omitted, .resw files are written to the current directory. Resgen.exe creates one .resw file for each .resources file in the assembly. The root file name of the .resw file is the same as the root name of the .resources file.
  The following command creates a .resw file in the Win8Resources directory for each .resources file embedded in MyApp.exe:
  resgen MyApp.exe Win8Resources
  Conditionally Compiling Resources.
  #ifdef PRODUCTION AppTitle=My Software Company Project Manager #endif #ifdef CONSULT AppTitle=My Consulting Company Project Manager #endif #ifdef RETAIL AppTitle=My Retail Store Project Manager #endif FileMenuName=File
  The file can then be compiled into a binary .resources file with the following command:
  resgen /define:CONSULT UIResources.restext
  This produces a .resources file that contains two string resources. The value of the
  AppTitle resource is "My Consulting Company Project Manager".
  Generating a Strongly Typed Resource Class:
  resgen inputFilename [outputFilename] /str:language[,namespace,[classname[,filename]]] [/publicClass]
  The parameters and switches are:
  inputFilename
  The file name, including the extension, of the resource file for which to generate a strongly typed resource class. The file can be a text-based, XML-based, or binary .resources file; it can have an extension of .txt, .restext, .resw, or .resources.
  outputFilename
  The name of the output file. If
  outputFilename includes a directory path, the directory must exist. If you omit
  outputFilename, Resgen.exe creates a .resources file with the root file name of
  inputFilename in the same directory as
  inputFilename.
  outputFilename can be a text-based, XML-based, or binary .resources file. If the file extension of
  outputFilename is different from the file extension of
  inputFilename, Resgen.exe performs the file conversion.
  If
  inputFilename is a .resources file, Resgen.exe copies the .resources file if
  outputFilename is also a .resources file. If
  outputFilename is omitted, Resgen.exe overwrites
  inputFilename with an identical .resources file.
  language
  The language in which to generate source code for the strongly-typed resource class. Possible values are
  cs,
  C#, and
  csharp for C# code,
  vb and
  visualbasic for Visual Basic code,
  vbs and
  vbscript for VBScript code, and
  c++,
  mc, and
  cpp for C++ code.
  namespace
  The namespace that contains the strongly typed resource class. The .resources file and the resource class should have the same namespace. For information about specifying the namespace in the
  outputFilename, see Compiling Resources into a Binary File. If namespace is omitted, the resource class is not contained in a namespace.
  classname
  The name of the strongly typed resource class. This should correspond to the root name of the .resources file. For example, if Resgen.exe generates a .resources file named MyCompany.Libraries.Strings.resources, the name of the strongly typed resource class is Strings. If classname is omitted, the generated class is derived from the root name of
  outputFilename. If
  outputFilename is omitted, the generated class is derived from the root name of
  inputFilename.
  classname cannot contain invalid characters such as embedded spaces. If classname contains embedded spaces, or if classname is generated by default from inputFilename, and inputFilename contains embedded spaces, Resgen.exe replaces all invalid characters with an underscore (_).
  filename
  The name of the class file.
  /publicclass
  Makes the strongly typed resource class public rather than
  internal (in C#) or
  Friend (in Visual Basic). This allows the resources to be accessed from outside the assembly in which they are embedded.
  Important
  When you create a strongly typed resource class, the name of your .resources file must match the namespace and class name of the generated code. However, Resgen.exe allows you to specify options that produce a .resources file that has an incompatible name. To work around this behavior, rename the output file after it has been generated.
  The strongly typed resource class has the following members:
  A parameterless constructor, which can be used to instantiate the strongly typed resource class..
  A
  static(C#) or
  Shared(Visual Basic) and read-only
  ResourceManagerproperty, which returns the ResourceManager instance that manages the strongly typed resource.
  A static
  Cultureproperty, which allows you to set the culture used for resource retrieval. By default, its value is
  null, which means.
  resgen StringResources.txt /str:vb,,StringResources
  See also
  Feedback
  We'd love to hear your thoughts. Choose the type you'd like to provide:
  Our feedback system is built on GitHub Issues. Read more on our blog.