DEV Community

loading...

Answer: log4net - LogicalThreadContext - and unit test cases

boyukbas profile image baris ・1 min read

If you are having meaningless errors related to log4net, this answer might save a ton of time for you.

-> Type is not resolved for member 'log4net.Util.PropertiesDictionary,log4net...

I ended up doing this to get it working:

put this in the TestCleanup() method:

CallContext.FreeNamedDataSlot("log4net.Util.LogicalThreadContextProperties");

Discussion (0)

pic
Editor guide