项目链接扩展无法在 Visual Studio 2013 Pro 上安装。

4
我正在尝试在Visual Studio中为Xamarin做教程。该教程可以在这里找到,其中提到为了完成教程需要安装Project Linker扩展。不幸的是,当我下载并尝试安装时,出现以下错误:

安装失败

无法将扩展安装到所有选定产品。有关更多信息,请单击对话框底部的安装日志链接。

这个扩展不能安装在任何当前安装的产品上。

安装日志如下:

2014-01-03 12:18:24 PM - Microsoft VSIX Installer
2014-01-03 12:18:24 PM - -------------------------------------------
2014-01-03 12:18:24 PM - Initializing Install...
2014-01-03 12:18:24 PM - Extension Details...
2014-01-03 12:18:24 PM -    Identifier      : 777046b2-7ee9-4e1e-8c34-5f2424eaabf1
2014-01-03 12:18:24 PM -    Name            : Project Linker 2012
2014-01-03 12:18:24 PM -    Author          : Jonkers
2014-01-03 12:18:24 PM -    Version         : 1.5
2014-01-03 12:18:24 PM -    Description     : This tool helps to automatically create                 and maintain links from a source project to a target project to share code that is common     to Silverlight and WPF. Therefore, shared code can be written once and built for the     target environment.
2014-01-03 12:18:24 PM -    Locale          : en-US
2014-01-03 12:18:24 PM -    MoreInfoURL     : 
2014-01-03 12:18:24 PM -    InstalledByMSI  : False
2014-01-03 12:18:24 PM -    SupportedFrameworkVersionRange : [4.5]
2014-01-03 12:18:24 PM - 
2014-01-03 12:18:24 PM -    Supported Products : 
2014-01-03 12:18:24 PM -        Microsoft.VisualStudio.Pro
2014-01-03 12:18:24 PM -            Version : [11.0]
2014-01-03 12:18:24 PM - 
2014-01-03 12:18:24 PM -    References      : 
2014-01-03 12:18:24 PM -        ---------------------------------------------------    ----
2014-01-03 12:18:24 PM -        Identifier   : Microsoft.VisualStudio.MPF.11.0
2014-01-03 12:18:24 PM -        Name         : Visual Studio MPF 11.0
2014-01-03 12:18:24 PM -        Version      : [11.0]
2014-01-03 12:18:24 PM -        MoreInfoURL  : 
2014-01-03 12:18:24 PM -        Nested       : No
2014-01-03 12:18:24 PM - 
2014-01-03 12:18:24 PM - 
2014-01-03 12:18:24 PM - Searching for applicable products...
2014-01-03 12:18:24 PM - Found installed product - Microsoft Visual Studio Professional         2013
2014-01-03 12:18:24 PM - Found installed product - Microsoft Visual Studio 2013 Shell     (Integrated)
2014-01-03 12:18:24 PM - Found installed product - Global Location
2014-01-03 12:18:24 PM - VSIXInstaller.NoApplicableSKUsException: This extension is not     installable on any currently installed products.
at VSIXInstaller.App.InitializeInstall()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()

我尝试通过Visual Studio内置扩展管理器安装软件包,“Project Linker”没有搜索结果。

我回到网站上查看,发现该扩展程序仅支持Visual Studio 2010。我四处寻找并找到了另一个名为“Project Linker 2012”的程序,它只支持Visual Studio 2012。

因此我的问题有两个方面。首先,是否有方法在VS2013上安装它们中的任何一个;其次,如果不行,是否有其他方法可以像教程所要求的那样链接项目。

提前致谢!


1
我无法为您提供如何解决此问题的建议,但我可以确认项目链接器2012可在VS2013中使用(我是这种组合的活跃用户)。 - Jaroslav Kadlec
我应该尝试标准的IT步骤/重新安装 -all :) 但这当然是一个令人烦恼的解决方案。 - Jaroslav Kadlec
@JamesAllingham 你能在VS2013上安装Project Linker吗?我也遇到了完全相同的问题:( - Bitsian
很抱歉,我没有使用Xamarin,因此我不需要这个扩展程序。对不起! - James Allingham
2个回答

7
主要思路是下载Project Linker 2012的.vsix文件并手动更新其内容,以便在VS2013中安装。
扩展程序的Q&A页面实际上包含了详细的步骤: http://visualstudiogallery.msdn.microsoft.com/273dbf44-55a1-4ac6-a1f3-0b9741587b9a 以下是具体步骤:
  1. 下载vsix
  2. 将扩展名从vsix改为zip
  3. 解压缩文件
  4. 用文本编辑器打开extension.vsixmanifest
  5. 将行 <InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="11.0" /> 更改为 <InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="12.0" />
  6. 将所有文件压缩回去7.重新命名为.vsix
  7. 双击该文件

1
你还需要编辑这一行中的数值,从11.0改为12.0。<Dependency Id="Microsoft.VisualStudio.MPF.12.0" DisplayName="Visual Studio MPF 12.0" Version="12.0" /> - JGrimm
请确保您从库中获取了最新的软件包,否则它将无法正常工作。 - Binu Bhasuran
2
这似乎可以在VS 2015 CTP中使用。只需使用14.0而不是12.0即可。 - Maxence

0

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接