使用NLog时,发布后出问题
用VS 2005时,用NLog管理日志,在本机编译运行都没问题,但是发布在server 2003上时,出现如下错误:
CS1685: Warning as Error: The predefined type 'System.Runtime.CompilerServices.ExtensionAttribute' is defined in multiple assemblies in the global alias; using definition from 'c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\pppp\1805aba3\faff2d19\assembly\dl3\90947d10\d42bf0f1_a0f5cb01\NLog.DLL'
什么问题呢?以前用log4的时候好像没这种问题啊?
对了,Nlog.dll通过添加引用加进程序的