I've used Obfuscar on my C# application, but the obfuscated version throws an exception where the normal version doesn't.
I'm trying to figure out what the problem is, but I'm struggling. I've used the XML options to turn off as much obfuscation as I can - essentially only changing the local variable names is in effect (can you turn that off?) - but the problem remains.
It appears to be caused by this line, concerning the Magick.NET library:
MagickImageCollection rowImages = new MagickImageCollection();
and throws this error:
The type initializer for 'NativeMagickImageCollection' threw an exception
Using ILSpy, I can't see anything in the obfuscated method that would trip this up - it's the very first thing in that method, more or less.
I'm at a loss as to what to try next - any ideas?