【发布时间】:2019-03-27 18:02:48
【问题描述】:
我想在 .NET 3.5 上构建 AutoCAD 2010 插件,因为 2010 年不支持 .NET 4.0。加载 AutoCAD 2010 API 库后,由于依赖关系,我无法构建解决方案。你能帮我弄清楚谁吗?
错误信息: 警告 15 无法解析主要引用“acmgd”,因为它间接依赖于具有更高版本“4.0.0.0”的 .NET Framework 程序集“mscorlib,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089” ” 比当前目标框架中的版本“2.0.0.0”。 PresbetonAPI
【问题讨论】:
-
它在错误信息中,只是拿走foof。
Warning The primary reference "acmgd" could not be resolved because it has an indirect dependency on a .NET Framework assembly which has a higher version (4.0) than the version (2.0) in the current target framework -
我怎样才能带走这玩意儿?我认为我的项目中有两个 foofs(2.0 和 4.0)。 mscolib 程序集引用已隐藏。