Wednesday, October 13, 2010

Disassemble and assemble .NET files


Today I wanted to edit some resources in some .NET assembly. For that I used ildasm, Resourcer and ilasm tools.

Step 1. disassemble: ildasm / assembly_name.dll
This will output the il file and the resources.
Step 2. edit resources with Resourcer.
Step 3. assemble the result:
ilasm /dll /resource:asssembly_name.res /output=assembly_name.dll
This order is important. Otherwise you will get some errors like "Could not create output file, error code=0x80004005".

No comments: