I want to change an image from a .exe
file. I used .NETReflector to open it and extract the resource file where it is located. I then converted the .resource
file to a .resx
file with resgen
(which I believe is from VS NETFX4.0
).
However, it seems that resgen
changes my references from libraries such as System.Drawing.dll Version=1.0.5000.0
to Version=4.0.0.0
, and when I use resgen
to recompile it to a resource file, I ge the error:
Could not load file or assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
I even tried referencing an old dist of System.dll
and still all of the library versions updated and made it unusable. How can I use resgen
so it doesn't change the version of my .resource
file? Help!