Indirect dependency on the .NET Framework assembly

a 夏天 提交于 2019-12-01 10:39:13

问题


So i have updated my Telerik dll's by dropping the new ones over the top and then cleaning my solution and rebuilding, to produce the following error:

Warning 3 The primary reference "Telerik.Windows.Documents.FormatProviders.Xaml" could not be resolved because it has an indirect dependency on the .NET Framework assembly "mscorlib, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" which has a higher version "5.0.5.0" than the version "2.0.5.0" in the current target framework.

I have googled lots and have found a few scenario's, but nothing that really helped. I tried deleting reference and restarting visual studio, but nothing worked. I was hoping someone could give me some ideas to help diagnose/solve my problem.

Thanks


回答1:


Your project's target framework is obviously 2.0 and those components probably require the latest version of .NET framework.

You could try to set the target framework to a more recent one from your project's Properties -> Application -> Target framework.




回答2:


it means that you have other Dlls that reference those who were updated from version 2 to 5. Are you sure you updated all the necessary Dlls?



来源:https://stackoverflow.com/questions/9394299/indirect-dependency-on-the-net-framework-assembly

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!