Closed pardeike closed 7 months ago
Have you tried the new-ilspy branch? From description, it seems new version ilspy will produce for loop, than new-ilspy branch should be ok
Yes, that fixes the code generation.
See #5 for the current status of integrating the latest ILSpy version.
dnSpyEx version
6.5.0
Describe the Bug
ILSpy:
dnSpy:
The IL (from ILSpy:
How To Reproduce
Decompile a method with that specific code.
Expected Behavior
It would nice if dnSpy could use for loops instead of while loops
Actual Behavior
Its creating sub-optimal source
Additional Context
I get constant shade at the RimWorld discord when I promote dnSpy mainly because of issues like this. I love and will continue to use dnSpy when coding with Harmony, so this is more of a heads-up.