log4net.dll 在 WinCE 6.0 上给我带来问题
我是 winCE (.net 2.0) 编程新手。
我的项目是C#语言的。我之前的一个人正在使用 log4net (运行时版本:V1.1.4322,版本 1.2.10.0)。这些版本是什么意思,我对吗 V1.1.4322 意味着它是在 .net 版本 1.1.4322 上编译的 现在的问题是,如果我编译它,就会发出警告:
考虑从版本“1.0.5000.0”中重新映射程序集“System.Data,Culture=neutral,PublicKeyToken=969db8053d3322ac,Retargetable=Yes” [] 到版本“2.0.0.0”[C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Data.dll] 来解决冲突并消除警告。
考虑将程序集“System.Xml, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes”从版本“1.0.5000.0”[] 重新映射到版本“2.0.0.0”[C: \Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Xml.dll] 来解决冲突并消除警告。
考虑 app.config 重新映射程序集“System, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes”从版本“1.0.5000.0”[] 到版本“2.0.0.0”[C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework \2.0\v2.0\WindowsCE\System.dll] 解决冲突并消除警告。
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets :警告 MSB3247:发现同一依赖程序集的不同版本之间存在冲突。
我的应用程序 .exe 正常,但当我运行 WinCE 模拟器时,它崩溃了
我使用了 app.config
,它没有解决我的问题
有什么建议吗?
I am new to winCE (.net 2.0) programming.
My project is in C# language. A guy before me was using log4net (Runtime version : V1.1.4322, Version 1.2.10.0). What does those versions means, Am I right V1.1.4322 means it was compiled on .net version 1.1.4322
Now the problem is if I compile it is giving me warning(s):
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.
My application .exe is OK but when I am running WinCE Emulator it is crashing
I have worked with app.config
, it didn't fix my problem
any suggestions ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您看到的问题是您引用了两个不同版本的 log4net。
检查任何引用的程序集以查看这些项目中是否有引用。然后确认磁盘上文件的任何副本的版本。
找到有问题的文件可能会很痛苦;我发现最简单的事情就是找到磁盘上的所有副本,然后删除错误版本的所有副本。然后查看您的项目抱怨的地方并进行调整。
The problem you're seeing is you've got references to two different versions of log4net.
Check any referenced assemblies to see if you've got references in those projects. Then confirm the versions of any copies of the file you've got on disk.
It can be a pain to find the offending file; I've found the simplest thing is to find all copies on disk, and just delete all copies of the incorrect version. Then see where your project complains and adjust.
我不确定您是否只是遇到 log4net 问题。
它抱怨的程序集是普通的 CLR 程序集(来自
System
命名空间)。在我看来,您几乎引用了多个 .NET 1.1 程序集,但您的项目已设置为使用 .NET 2.0。 IDE 要求您将 1.1 程序集映射到 2.0 程序集,以便您的项目知道在运行时应该使用哪一个。I'm not sure that you're having just a log4net problem.
The assemblies its complaining about are normal CLR assemblies (from the
System
namespace). It almost seems to me that you have references to several .NET 1.1 assemblies but you've got your project set to use .NET 2.0. The IDE is asking you to map the 1.1 assemblies to the 2.0 ones so that your project will know which one it should use at runtime.