我试图编译Visual Studio 2010中的一个项目它在Visual Studio中工作得很好,但2008年2010年给了以下错误:如何修复引用旧版(测试版).NET的程序集?
The primary reference "TiS.Core.eFlowAPI" could not be resolved because it has an indirect dependency on the .NET Framework assembly "mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which has a higher version "2.0.3600.0" than the version "2.0.0.0" in the current target framework.
我就找到了罪魁祸首MDbgCore.dll。这个程序集包含在(依赖链中),它正在寻找mscorlib 2.0.3600.0。
做了一些研究后,它看起来像是.NET 2.0的测试版。
我该如何解决这个问题?我没有访问这个第三方DLL的代码(即。TiS.Core.eFlowAPI)。
我的项目(针对.NET 3.5)引用TiS.Core.eFlowAPI.dll。问题是TiS.Core.eFlowAPI.dll引用其他DLL包括MDbgCore.dll。正是这个DLL从.NET 2.0.3600中寻找mscorlib。 – SofaKng 2011-02-02 15:47:08