Resource file Description: resource file generator (Resgen.exe)

Source: Internet
Author: User

Resource file generator (Resgen.exe)
The resource file Generator. txt files and. the resx (XML-based resource format) file is converted to the binary format of the Common Language Runtime Library. resources file, which can be embedded into the binary executable file of the runtime or compiled into a subsidiary assembly.
Resgen.exe performs the following conversions:
• Convert A. txt file to a. resources file or a. resx file.
• Convert the. resources file to a text file or a. resx file.
• Convert the. resx file to a text file or. resources file.
Syntax
Resgen filename. extension [outputFilename. extension]
Parameters
Description
Filename. extension
Name of the input file to be converted.
Extension must be one of the following values:
. Txt
Specifies the extension of the text file to be converted to a. resources file or. resx file.
A text file can only contain string resources.
. Resx
Specify the extension of the XML-based resource file to be converted to the. resources file or. txt file.
. Resources
Specifies the extension of the resource file to be converted to a. resx or. txt file.
OutputFilename. extension
The name of the resource file to be created.
This parameter is optional when converting from A. txt or. resx file.
When converting a text or. resx file to a. resources file, you can specify the. resources extension.
If outputfilenameis not specified, resgen.exe adds a. resources extension to the input filename parameter and writes the file to a directory containing filename.
During conversion from the. resources file, the outputFilename parameter is mandatory.
When converting the. resources file to an XML-based. resources file, specify the. resx extension.
Specify the. txt extension when converting the. resources file to a text file.
The. resources file should be converted to a. txt file only when the. resources file contains only string values.
Remarks
Resgen.exe encapsulates the methods implemented by the following four types to convert files:
• ResourceReader Class reads the. resources file.
• ResourceWriter Class creates a. resources file from a specified resource.
• ResXResourceReader Class reads the. resx file.
• ResXResourceWriter Class creates a. resx file from the specified resource.
Note that the. resx File Created by ResXResourceWriter cannot be directly used by the. NET application.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.