转换为c++;从4.0到3.5框架的项目 我必须改变C++项目的目标框架,从4到3.5。我发现这个问题/答案对如何做很有帮助: 但我遇到了以下问题:我收到了警告: warning MSB3258: The primary reference "path\file.dll" could not be resolved because it has an indirect dependency on the .NET Framework assembly "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which has a higher version "4.0.0.0" than the version "2.0.0.0" in the current target framework

转换为c++;从4.0到3.5框架的项目 我必须改变C++项目的目标框架,从4到3.5。我发现这个问题/答案对如何做很有帮助: 但我遇到了以下问题:我收到了警告: warning MSB3258: The primary reference "path\file.dll" could not be resolved because it has an indirect dependency on the .NET Framework assembly "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which has a higher version "4.0.0.0" than the version "2.0.0.0" in the current target framework,.net,.net-4.0,.net-3.5,c++-cli,upgrade,.net,.net 4.0,.net 3.5,C++ Cli,Upgrade,对于System,Version=4.0.0.0,Microsoft.VisualC,Version=10.0.0.0,System.Configuration,Version=4.0.0.0,System.Xml,Version=4.0.0.0,System.Security,Version=4.0.0.0,以及System.Data.SqlXml,Version=4.0.0.0。这会导致依赖file.dll的所有项目中出现无法找到的错误。 我不知道怎么解决这个问题。我也安装了VisualSt

对于
System,Version=4.0.0.0
Microsoft.VisualC,Version=10.0.0.0
System.Configuration,Version=4.0.0.0
System.Xml,Version=4.0.0.0
System.Security,Version=4.0.0.0
,以及
System.Data.SqlXml,Version=4.0.0.0
。这会导致依赖file.dll的所有项目中出现无法找到的错误。

我不知道怎么解决这个问题。我也安装了VisualStudio 2008——尽管它似乎不太在意,而且使用平台工具集V90也使得C++项目不被构建。请帮忙

> P > Visual C++编译器版本16(用VisualStudio 2010进行了传输)不能针对任何框架版本(不包括4)。

到目标3.5,必须使用C++编译器的旧版本(Visual Studio 2008),并且不能使用新的C++语言特性(如初步C++ 11支持)。


通过选择平台工具链v90,您可以继续使用Visual Studio 2010 IDE。

是否安装了3.5 framework?是的,除了依赖于我正在尝试修复的应用程序之外,我所有的dot-net应用程序都可以在3.5中正常工作。我一直在尝试对.rc文件中包含的以下项目进行故障排除,该文件显然不包含在VS2008 Express中:#包括“afxres.h”。我发现它可以用windows.h替换,但我不确定它是否能正常工作。在VS2010中,它能够找到afxres.h文件。