Open LennardF1989 opened 7 years ago
I've run into this as well. How do I set the ShouldCancelRename
as a workaround until this if fixed?
@jsmars I have made some changes to the code so I can toggle it on or off using a parameter called renPublicMono
. The easiest method however is getting the latest source and changing this line to simply return true: https://github.com/yck1509/ConfuserEx/blob/3c9c29d9daf2f1259edf69054c5693d5d225a980/Confuser.Renamer/References/OverrideDirectiveReference.cs#L69
It will do exactly the same as my toggle, just... always :P Whereas I would only like to toggle it when I make a mac/linux build.
Thanks, I'll have to do that then. I'll probably try to add a toggle as well since I'd prefer it only on mac/linux builds. I hope this gets fixed soon!
Continueing my investigations for issue #204, I found out that Mono currently cannot handle the
OverrideDirectiveReference
properly. When I purpose exclude this implementation by returningtrue
inShouldCancelRename
, I can succesfully run an aggresively obfuscated program withrenPublic
enabled on Mac!I'll try to dig deeper why this is happening, but my time at the moment is limited and someone whoes deeper into the internals of ConfuserEx and how IL works might spot something off in there.
Link: https://github.com/yck1509/ConfuserEx/blob/3c9c29d9daf2f1259edf69054c5693d5d225a980/Confuser.Renamer/References/OverrideDirectiveReference.cs#L33