MSB4018中的“;ResolveComReference“;任务意外失败 我目前正试图将VisualStudio 2010的C++ MFC解决方案升级为VisualStudio 2013解决方案。当我尝试构建它时,出现错误MSB4018“ResolveComReference”任务意外失败。我启用了fusion日志记录,它告诉我: === Pre-bind state information === LOG: DisplayName = System (Partial) WRN: Partial binding information was supplied for an assembly: WRN: Assembly Name: System | Domain ID: 1 WRN: A partial bind occurs when only part of the assembly display name is provided. WRN: This might result in the binder loading an incorrect assembly. WRN: It is recommended to provide a fully specified textual identity for the assembly, WRN: that consists of the simple name, version, culture, and public key token. WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue. LOG: Appbase = file:///C:/Program Files (x86)/MSBuild/12.0/bin/ LOG: Initial PrivatePath = NULL Calling assembly : Microsoft.Build.Tasks.v12.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Program Files (x86)\MSBuild\12.0\bin\MSBuild.exe.Config LOG: Using host configuration file: LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/Program Files (x86)/MSBuild/12.0/bin/System.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/MSBuild/12.0/bin/System/System.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/MSBuild/12.0/bin/System.EXE. LOG: Attempting download of new URL file:///C:/Program Files (x86)/MSBuild/12.0/bin/System/System.EXE.

MSB4018中的“;ResolveComReference“;任务意外失败 我目前正试图将VisualStudio 2010的C++ MFC解决方案升级为VisualStudio 2013解决方案。当我尝试构建它时,出现错误MSB4018“ResolveComReference”任务意外失败。我启用了fusion日志记录,它告诉我: === Pre-bind state information === LOG: DisplayName = System (Partial) WRN: Partial binding information was supplied for an assembly: WRN: Assembly Name: System | Domain ID: 1 WRN: A partial bind occurs when only part of the assembly display name is provided. WRN: This might result in the binder loading an incorrect assembly. WRN: It is recommended to provide a fully specified textual identity for the assembly, WRN: that consists of the simple name, version, culture, and public key token. WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue. LOG: Appbase = file:///C:/Program Files (x86)/MSBuild/12.0/bin/ LOG: Initial PrivatePath = NULL Calling assembly : Microsoft.Build.Tasks.v12.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Program Files (x86)\MSBuild\12.0\bin\MSBuild.exe.Config LOG: Using host configuration file: LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/Program Files (x86)/MSBuild/12.0/bin/System.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/MSBuild/12.0/bin/System/System.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/MSBuild/12.0/bin/System.EXE. LOG: Attempting download of new URL file:///C:/Program Files (x86)/MSBuild/12.0/bin/System/System.EXE.,c++,mfc,msbuild,visual-studio-2013,C++,Mfc,Msbuild,Visual Studio 2013,我知道msbuild已被移动,但我不明白它为什么试图在msbuild路径中查找System.dll,如何使它在其正确位置查找它 编辑: 我现在也尝试升级到VisualStudio2012,它没有出现更大的问题,我也没有遇到同样的问题。然而,我注意到,当运行devenv/upgrade(使用vs2013)时,它似乎完全改变了vc++目录下的所有内容(升级到vs2012时保持不变)。这可能与这个问题有关吗 Edit2: 在升级到2012年后,尝试在vs2013中构建项目(未运行devenv/up

我知道msbuild已被移动,但我不明白它为什么试图在msbuild路径中查找System.dll,如何使它在其正确位置查找它


编辑: 我现在也尝试升级到VisualStudio2012,它没有出现更大的问题,我也没有遇到同样的问题。然而,我注意到,当运行devenv/upgrade(使用vs2013)时,它似乎完全改变了vc++目录下的所有内容(升级到vs2012时保持不变)。这可能与这个问题有关吗


Edit2: 在升级到2012年后,尝试在vs2013中构建项目(未运行devenv/upgrade),这也不起作用,因此我猜问题与此无关…

这是您的问题:

LOG: Appbase = file:///C:/Program Files (x86)/MSBuild/12.0/bin/

如果确实需要将基本文件夹指向另一个filder,请修复生成系统中的基本文件夹。但是,最好是重新构建面向2013的系统,而不是修补2010版本。

启用Diagnostic构建输出后,我发现项目中有3个断开的COM引用未能加载。删除这些参照解决了建筑问题。这些警告在vs2010中仅显示为警告,但由于某些原因导致在VS2013中出现MSB4018。

直接访问Microsoft网站可能是您的最佳选择。