[英]log4net.dll is giving me problem on WinCE 6.0
我是 winCE (.net 2.0) 编程的新手。
我的项目使用 C# 语言。 我之前的一个人正在使用 log4net(运行时版本:V1.1.4322,版本 1.2.10.0)。 这些版本是什么意思,我对吗 V1.1.4322 意味着它是在 .net 版本 1.1.4322 上编译的现在问题是,如果我编译它会给我警告:
Consider app.config remapping of assembly "System.Data, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes" from Version "1.0.5000.0" [] to Version "2.0.0.0" [C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Data.dll] to solve conflict and get rid of warning.
Consider app.config remapping of assembly "System.Xml, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes" from Version "1.0.5000.0" [] to Version "2.0.0.0" [C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Xml.dll] to solve conflict and get rid of warning.
Consider app.config remapping of assembly "System, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes" from Version "1.0.5000.0" [] to Version "2.0.0.0" [C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.dll] to solve conflict and get rid of warning.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets: warning MSB3247: Found conflicts between different versions of the same dependent assembly.
我的 application.exe 没问题,但是当我运行 WinCE Emulator 时它崩溃了
我使用过app.config
,它没有解决我的问题
有什么建议么?
您看到的问题是您引用了两个不同版本的 log4net。
检查任何引用的程序集,看看您是否在这些项目中有引用。 然后确认您在磁盘上的任何文件副本的版本。
找到有问题的文件可能会很痛苦; 我发现最简单的方法是找到磁盘上的所有副本,然后删除不正确版本的所有副本。 然后看看你的项目在哪里抱怨和调整。
我不确定您是否遇到了log4net 问题。
它抱怨的程序集是普通的 CLR 程序集(来自System
命名空间)。 在我看来,您几乎参考了几个 .NET 1.1 程序集,但您的项目已设置为使用 .NET 2.0。 IDE 要求您将 1.1 程序集转换为 2.0 程序集,以便您的项目知道在运行时应该使用哪一个程序集。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.