Devart T4 Editor 1.0.9 无法为 VS 2017 Pro 安装

Devart T4 Editor 1.0.9 fails to install for VS 2017 Pro

我已经在另一台机器上成功安装了它。你看到我需要在我的机器上做什么才能安装它吗?这是安装日志:

5/24/2018 9:55:57 AM - Microsoft VSIX Installer
5/24/2018 9:55:57 AM - -------------------------------------------
5/24/2018 9:55:57 AM - vsixinstaller.exe version:
5/24/2018 9:55:57 AM - 15.0.437+g8d2477ee3d
5/24/2018 9:55:57 AM - -------------------------------------------
5/24/2018 9:55:57 AM - Command line parameters:
5/24/2018 9:55:57 AM - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\xxx\Downloads\Devart.TemplateEditor.Vs2017.vsix
5/24/2018 9:55:57 AM - -------------------------------------------
5/24/2018 9:55:57 AM - Microsoft VSIX Installer
5/24/2018 9:55:57 AM - -------------------------------------------
5/24/2018 9:55:59 AM - Initializing Install...
5/24/2018 9:55:59 AM - Extension Details...
5/24/2018 9:55:59 AM -  Identifier         : T4 Editor
5/24/2018 9:55:59 AM -  Name               : Devart T4 Editor
5/24/2018 9:55:59 AM -  Author             : Devart
5/24/2018 9:55:59 AM -  Version            : 1.0.9.0
5/24/2018 9:55:59 AM -  Description        : Editor for T4 and Devart template files with syntax coloring and IntelliSense.
5/24/2018 9:55:59 AM -  Locale             : en-US
5/24/2018 9:55:59 AM -  MoreInfoURL        : http://www.devart.com/
5/24/2018 9:55:59 AM -  InstalledByMSI     : False
5/24/2018 9:55:59 AM -  SupportedFrameworkVersionRange : [4.5,)
5/24/2018 9:55:59 AM - 
5/24/2018 9:55:59 AM -  SignatureState     : Unsigned
5/24/2018 9:55:59 AM -  Supported Products : 
5/24/2018 9:55:59 AM -      Microsoft.VisualStudio.Community
5/24/2018 9:55:59 AM -          Version : [15.0]
5/24/2018 9:55:59 AM - 
5/24/2018 9:55:59 AM -  References         : 
5/24/2018 9:55:59 AM -  Prerequisites      : 
5/24/2018 9:55:59 AM -      -------------------------------------------------------
5/24/2018 9:55:59 AM -      Identifier   : Microsoft.VisualStudio.Component.CoreEditor
5/24/2018 9:55:59 AM -      Name         : Visual Studio core editor
5/24/2018 9:55:59 AM -      Version      : [15.0,16.0)
5/24/2018 9:55:59 AM - 
5/24/2018 9:55:59 AM - Signature Details...
5/24/2018 9:55:59 AM -  Extension is not signed.
5/24/2018 9:55:59 AM - 
5/24/2018 9:55:59 AM - Searching for applicable products...
5/24/2018 9:55:59 AM - Found installed product - Global Location
5/24/2018 9:55:59 AM - Found installed product - Visual Studio Build Tools 2017 (2)
5/24/2018 9:55:59 AM - System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.VisualStudio.ExtensionManager.EngineUtilities.TryGetProductVersion(String productVersionString, Version& productVersion)
   at Microsoft.VisualStudio.ExtensionManager.EngineUtilities.TryGetProductVersionFromPath(String path, Version& productVersion)
   at VSIXInstaller.SupportedVSSKU.get_VersionWithBuildRevisionInfo()
   at VSIXInstaller.App.IsValidSKUForExtension(SupportedVSSKU supportedSKU, IExtension extension, List`1 validSKUs)
   at VSIXInstaller.App.ShouldAddSkuToValidSkuList(SupportedVSSKU sku, IInstallableExtension extension, List`1 validSKUs)
   at VSIXInstaller.App.GetInstallableData(String vsixPath, Boolean isRepairSupported, IEnumerable`1& skuData)
   at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
   at VSIXInstaller.App.Initialize()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

谢谢@magicandre1981 的提示。

我安装了 VS 2017 专业版。我查看了尝试为 VS 2015 安装 T4 编辑器时产生的错误日志。支持的产品列表对 VS2015 的 T4 编辑器更具包容性:

5/25/2018 9:29:53 AM -  Supported Products : 
5/25/2018 9:29:53 AM -      Microsoft.VisualStudio.Pro
5/25/2018 9:29:53 AM -          Version : [14.0]
5/25/2018 9:29:53 AM -      Microsoft.VisualStudio.VST_All
5/25/2018 9:29:53 AM -          Version : [14.0]

安装程序仅查找 VS 2017 的社区 SKU。这似乎是这里的问题。

  1. 您正在安装 T4 Editor for Visual Studio 2017,不是吗?
  2. 您的工作站上是否安装了 Visual Studio Build Tools 2017?参考https://developercommunity.visualstudio.com/content/problem/32018/vsixinstallerexe-cant-install-extensions-when-visu.html.
  3. 打开 VS 2017 Professional > 帮助 > 检查更新。应用更新(如果有)。这有帮助吗?