codemerx / CodemerxDecompile

The first standalone .NET decompiler for Mac, Linux and Windows
https://decompiler.codemerx.com
GNU Affero General Public License v3.0
272 stars 17 forks source link

Can't update assemblies. #73

Open Maelep opened 3 years ago

Maelep commented 3 years ago

I have decompiled some DLL that I use everyday. Yesterday, an update of these DLL has been released so I downloaded them and replaced the old one. The decompiler is still loading the "cached" version, even if I clear the list (File > Clear assembly) and reload them. The only way to load the new files is by changing the location of my files.

I also tried to load files in the new location, clear assembly and load again at the old location, without success. Restarting my computer still doesn't resolve this issue.

atdimitrov commented 3 years ago

Thank you for letting us know about this issue. Would it be possible that you provide us with the 2 versions of the assembly that are causing the issue?

As a workaround:

  1. Close CodemerxDecompile
  2. Delete %APPDATA%\CodemerxDecompile\sources
  3. Reopen CodemerxDecompile and load the assembly
Maelep commented 3 years ago

I discovered this bug when updating Oxide from 2.0.5164 to 2.0.5186.

Thank you for the workaround because changing file location at each update is boring xD

atdimitrov commented 3 years ago

Thank you for the follow up and for the reproduction scenario. We really appreciate that.

Thank you for the workaround because changing file location at each update is boring xD

Sure, no problem. I thought we had this Clear assembly list functionality done, but it seems it is not fully functional yet, so a workaround is must here :)

Maelep commented 3 years ago

Do you think possible to create a small DOS script that:

I know how to clear cache in DOS but I don't know if it's possible to make CodemerxDecompile loads the assembly.

atdimitrov commented 3 years ago

No, I don't think that's possible. CodemerxDecompile does not support command line arguments as of yet.

Maelep commented 3 years ago

Thank you for your answer :)