Affects Version/s: 2.0.8
Fix Version/s: None
I use log4net in my application for logging. In one day unit tests stopped in visual studio. There was error:
An exception occurred while invoking executor 'executor://mstestadapter/v2': Unable to find assembly 'log4net, Version=220.127.116.11, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a'.
I spend much time to find problem.
I have in my ctor this:
log = log4net.LogManager.GetLogger(typeof(Logger));
log4net.LogicalThreadContext.Properties["LogRunId"] = 0; //get max+1 log from database
When I comment second line unit test works fine. When I change LogicalThreadContext to ThreadContext it works fine. If there is LogicalThreadContext error is shown. Why?
Example application could be found on https://1drv.ms/u/s!AtGI8jaUqSfuiNhRtwmmxkr-YhoWPA