none
visual studio 2010编译不同.net库依赖的问题 RRS feed

  • 问题

  • 如果.net 2.0项目 引用.net 3.5 项目编译的动态链接库的时候,会发生编译错误,直接找不到,而vs2008没有这个问题。

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3268: The primary reference "CommonLib" could not be resolved because it has an indirect dependency on the framework assembly "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "CommonLib" or retarget your application to a framework version which contains "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".

    2010年4月13日 3:38

答案

全部回复