调用的执行器“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

posted @ 2018-01-13 11:17  张保维  阅读(687)  评论(0编辑  收藏  举报