ILAsm versions 5.0 or higher fail when given a res file generated by ILDasm #109225
Labels
area-ILTools-coreclr
Priority:1
Work that is critical for the release, but we could probably ship without
Milestone
Description
Attempting to round trip a dll through ILDasm and ILAsm without any changes fails to generate a dll when giving ILAsm the res file created by ILDasm. I've tracked down the failure point to the code in CeeFileGenWriter::emitResourceSection(). The code that scans the res sections never finds any .rsrc sections so the rsrc array check fails and bails. I'm not sure if ILDasm is not generating the proper res format or if ILAsm isn't parsing the res file correctly.
Reproduction Steps
Expected behavior
ILAsm successfully creates the dll with the given res entries
Actual behavior
ILAsm throws the error:
Regression?
This works with the version of ILAsm that ships with Visual Studio and installs to:
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: