对 .NET Framework 程序集的间接依赖
因此,我通过将新的 dll 放在顶部,然后清理我的解决方案并重建来更新我的 Telerik dll,以产生以下错误:
警告 3 主要引用“Telerik.Windows.Documents.FormatProviders.Xaml”无法解析,因为它间接依赖于 .NET Framework 程序集“mscorlib,Version=5.0.5.0,Culture=neutral, PublicKeyToken=7cec85d7bea7798e" 其版本 "5.0.5.0"
比当前目标框架中的版本 "2.0.5.0"
更高。
我在谷歌上搜索了很多,发现了一些场景,但没有什么真正有帮助的。我尝试删除引用并重新启动 Visual Studio,但没有任何效果。我希望有人能给我一些想法来帮助诊断/解决我的问题。
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的项目的目标框架显然是 2.0,并且这些组件可能需要最新版本的 .NET Framework。
您可以尝试从项目的“属性 ->”中将目标框架设置为更新的框架。应用->目标框架。
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
.这意味着您还有其他 Dll 引用了从版本 2 更新到版本 5 的 Dll。
您确定更新了所有必需的 Dll 吗?
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?