How to Compile a RESX File to a DLL


Computer programs use different file formats to store static data. For example, a .Net program might store data in a .Resx resource file. This file uses the XML language to store data, and is therefore capable of being edited by any text editor. A resource file can be used to store the text in a .Net Web page under various languages. To properly use the .Resx file, you must convert it into a Dynamic Link Library using a couple of command lines that are native to the .Net development environment.

Things You'll Need

  • Visual Studio 2010
  • .Resx File
  • Open the Visual Studio command prompt by clicking on the Start Menu and navigating to "Visual Studio 2010\Visual Studio Tools."

  • Type "resgen.exe /compile" into the command prompt, then enter the name of the .Resx file you intend to convert.

  • Hit "enter" to compile the .Resx file.

  • Type "al.exe /out:file.dll /embedresource:" into the command prompt, followed by the file name produced in the previous step. This file name will be the original .Resx name with the extension .resources.

  • Hit "enter" to generate a DLL file. The .Resx file is now converted into a DLL named "file.dll."

Related Searches


Promoted By Zergnet


You May Also Like

  • How to Create DLL Files

    Dynamic Link Libraries or DLL files are libraries of functions to which executable programs can link or refer to during run time....

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

Is DIY in your DNA? Become part of our maker community.
Submit Your Work!