调用的执行器“executor://mstestadapter/v2”时发生异常: 无法找到程序集“log4net, Version=1.2.15.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a”

加上下面的一句就好了


[TestCleanup]
      public void cleanup()
      {
          CallContext.FreeNamedDataSlot("log4net.Util.LogicalThreadContextProperties");
      }




Ref:https://stackoverflow.com/questions/23661372/log4net-logicalthreadcontext-and-unit-test-cases

原文地址:https://www.cnblogs.com/zbw911/p/8278641.html