0

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.0to 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!

Ethan
  • 1
  • You need the .NET 1.0 version of resgen.exe. – Hans Passant Mar 06 '20 at 17:27
  • Is it as easy as just downloading the core? @HansPassant – Ethan Mar 06 '20 at 17:56
  • It is a build tool, not a framework tool. So no, "easy" does not apply. Afaik you need to get VS2002 installed, hard to be sure. You don't give anybody a chance to provide an alternative when you don't explain why you need to do this. – Hans Passant Mar 06 '20 at 18:16

0 Answers0