发现同一依赖程序集的不同版本之间存在冲突。 [英] Found conflicts between different versions of the same dependent assembly.

查看:330
本文介绍了发现同一依赖程序集的不同版本之间存在冲突。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行我的应用程序时会出现这样的警告

发现同一个依赖程序集的不同版本之间存在冲突

什么是理由并帮我删除此警告

When am running my application a warning will come like this
Found conflicts between different versions of the same dependent assembly
what is the reason and help me to remove this warning

推荐答案

请参阅我对该问题的评论。您可以使用此方法调查问题:

https://msdn.microsoft.com/en-us/library/system.appdomain.getassemblies%28v=vs.110%29.aspx [ ^ ],

https:// msdn。 microsoft.com/en-us/library/system.reflection.assembly.getreferencedassemblies%28v=vs.110%29.aspx [ ^ ](递归查找全部)。 />


对于每个程序集,输出程序集的全名: https://msdn.microsoft.com/en-us/library/system.reflection.assembly.fullname%28v=vs.110%29.aspx [< a href =https://msdn.microsoft.com/en-us/library/system.reflection.assembly.fullname%28v=vs.110%29.aspxtarget =_ blanktitle =New Window> ^ $。



当只有版本或其他身份细节不同时,制作列表并查看具有相似名称的匹配程序集。然后找出哪些是多余的,然后找出如何消除它。如果它似乎有问题,请提出另一个问题,这次是关于冗余组件的详细信息.a



-SA
Please see my comment to the question. You can investigate the problem using this:
https://msdn.microsoft.com/en-us/library/system.appdomain.getassemblies%28v=vs.110%29.aspx[^],
https://msdn.microsoft.com/en-us/library/system.reflection.assembly.getreferencedassemblies%28v=vs.110%29.aspx[^] (do it recursively to find all).

For each assembly, output full name of the assembly: https://msdn.microsoft.com/en-us/library/system.reflection.assembly.fullname%28v=vs.110%29.aspx[^].

Make the lists and review them for matching assemblies with similar names, when only the version or other identity detail are different. Then find out which ones are redundant and then thing how to eliminate it. If it seems to be problematic, ask another question, this time with detail information on redundant assemblies.a

—SA


这篇关于发现同一依赖程序集的不同版本之间存在冲突。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆