如何解决Microsoft.VisualStudio.ExtensionManager.MissingReference

本文关键字:Microsoft VisualStudio ExtensionManager MissingReference 解决 何解决 | 更新日期: 2023-09-27 18:26:38

我正在尝试为VS2013预览进行扩展,以下是我在GitHub上的尝试:https://github.com/Heather/Nemerle/tree/VS2013

但现在我得到了:

07.08.2013 9:25:05 - The following target products have been selected...
07.08.2013 9:25:05 -    Microsoft Visual Studio Ultimate 2013 Preview
07.08.2013 9:25:05 - 
07.08.2013 9:25:05 - Beginning to install extension to Microsoft Visual Studio Ultimate 2013 Preview...
07.08.2013 9:25:05 - Install Error : Microsoft.VisualStudio.ExtensionManager.MissingReferencesException: This extension cannot be installed because the following references are missing:
- Visual Studio MPF
   at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.CheckForInstallBlockers(InstallableExtensionImpl extension, IInstalledExtensionList modifiedInstalledExtensionsList, Boolean isNestedExtension, Boolean& olderVersionInstalled)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.InstallInternal(InstallableExtensionImpl extension, Boolean perMachine, Boolean isNestedExtension, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, AsyncOperation asyncOp, UInt64 totalBytesToWrite, UInt64& totalBytesWritten)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.BeginInstall(IInstallableExtension installableExtension, Boolean perMachine, AsyncOperation asyncOp)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.InstallWorker(IInstallableExtension extension, Boolean perMachine, AsyncOperation asyncOp)

我过去常常添加每一个需要的扩展,但不明白它是从哪里来的?

以下是当前状态下的扩展项目文件:https://github.com/Heather/Nemerle/blob/VS2013/snippets/VS2010/Nemerle.VisualStudio/Nemerle.VisualStudio-VS-2013.csproj

应该添加什么来解决此问题?

如何解决Microsoft.VisualStudio.ExtensionManager.MissingReference

检查.vsixmanifest,它指定了"引用"。我希望这种提法仍然有效(强积金版本不应该消失),所以我很惊讶这里可能会有什么东西被破坏。无论如何,.vsix引用只是用来说明需要什么。。。他们实际上什么都不做。您可能可以删除引用而不会产生不良影响。

我也面临同样的问题。通过首先安装制导自动化扩展(GAX),然后尝试安装所需的vsix文件来解决此问题。