Closed theerfan closed 4 years ago
From your log:
BadImageFormatException: Could not load file or assembly 'de4dot.code, Version=3.1.41592.3405, Culture=neutral, PublicKeyToken=d3f3ed1e47f67fc6' or one of its dependencies. An attempt was made to load a program with an incorrect format.
You are trying to build de4dot.code for an unsupported architecture. Note that many of de4dot's sub-projects compile for x86 only, but they will still work just fine on x64. That said, if you leave the build settings as default (Mixed Platforms), everything should compile successfully, or at least it does here, on the CI server, and for everybody else.
I never even touched the build settings.
Do you have .NET 2.0 installed? Seems like that's all sub-projects target. Unfortunately, I cannot reproduce this issue on my end or at GitHub's CI.
EDIT: Just reproduced it, please give me some time to investigate.
Alright, thank you.
Turns out I had accidentally made de4dot.code x86-only for Debug mode, which makes it unusable from de4dot-x64. This did not affect Release mode, so the CI and everything else was unaffected. I pushed a fix, please try it out and let me know how it goes.
Thanks for reporting!
Yeah, it compiles now but I'm encountering this other problem. xD When I run:
de4dot-x64 Program.exe
I get:
Array dimensions exceeded supported range. Array dimensions exceeded supported range. Detected ConfuserEx v0.6.0 (G:\Blah\de4dot-cex\Debug\Program.exe) Cleaning G:\Blah\de4dot-cex\Debug\Program.exe
Unhandled Exception: System.ApplicationException: Invalid new target, it's null
Can you confirm that it also happens with the pre-built binaries? If yes, please open a separate issue for that problem.
I will, but it's also worth mentioning that now the Release config won't compile.
GitHub CI can compile it, and so can I. try to clean your project maybe?
I cleaned the entire solution and tried again, still the same results.
Your output log suggests 17 succeeded and 0 failed builds, so there should be no problems.
I will, but it's also worth mentioning that now the Release config won't compile.
I got this again after the clean builds. P.S: Ik it's a run-time problem but still. xD
Hi. I'm using Visual Studio 2019, and trying to build the x64 project which I cloned directly with the instruction given in the original repo, but it gives me the following exception:
Even though the de4dot.code project is right there alongside the rest.
I also tried to download the release zip file but it returns the following: