Fixing LibLog for using with ILMerge

added by DotNetKicks
1/23/2017 4:35:23 PM

1 Kicks, 368 Views

Here the issue, in the ILMerged executable there is no NLog assembly. LibLog is not able to detect any logging framework and silently ignores all logging calls. Solution is easy - if GetType call for an assembly qualified type returns null, call GetType for the type only.