您的位置:首页 > 其它

vs2012 单元测试中Common.Logging抛异常的解决方案

2016-03-22 18:09 267 查看
在vs2012 单元测试中,调用Common.Logging时,在执行初始化日志时

ILog Logger = LogManager.GetCurrentClassLogger(); 抛异常.

异常信息如下:

Unable to create instance of type Common.Logging.NLog.NLogLoggerFactoryAdapter. Possible explanation is lack of zero arg and single arg NameValueCollection constructors

解决方法:
该问题由工具本身bug导致,需要跟新VS2012.4.iso的一个升级包修复,该包邮2.34G
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: