gpt4 book ai didi

visual-studio - VSIX 安装程序扩展不可安装在任何当前安装的产品上

转载 作者:行者123 更新时间:2023-12-03 20:10:54 29 4
gpt4 key购买 nike

我尝试在 Visual Studio 2017 社区离线安装 objc-syntax-highlighting.vsix。我无法解决它。我从 https://github.com/Microsoft/WinObjC/releases 下载了扩展包并尝试从 0.2 预览版(2017 年 12 月)安装软件包

2/21/2018 11:58:55 AM - Microsoft VSIX Installer 
2/21/2018 11:58:55 AM - -------------------------------------------
2/21/2018 11:58:55 AM - vsixinstaller.exe version:
2/21/2018 11:58:55 AM - 15.5.99+g87f89a485e
2/21/2018 11:58:55 AM - -------------------------------------------
2/21/2018 11:58:55 AM - Command line parameters:
2/21/2018 11:58:55 AM - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\lenovo\AppData\Local\Temp\Rar$DIa10400.20842\objc-syntax-highlighting.vsix
2/21/2018 11:58:55 AM - -------------------------------------------
2/21/2018 11:58:55 AM - Microsoft VSIX Installer
2/21/2018 11:58:55 AM - -------------------------------------------
2/21/2018 11:58:58 AM - Initializing Install...
2/21/2018 11:58:58 AM - Extension Details...
2/21/2018 11:58:58 AM - Identifier : VSIX..9c35fff1-f084-44c1-a38e-68c707163aa2
2/21/2018 11:58:58 AM - Name : Objective-C Language Service
2/21/2018 11:58:58 AM - Author : Microsoft
2/21/2018 11:58:58 AM - Version : 1.5
2/21/2018 11:58:58 AM - Description : This package contains Objective-C language service components such as syntax higlighting etc
2/21/2018 11:58:58 AM - Locale : en-US
2/21/2018 11:58:58 AM - MoreInfoURL :
2/21/2018 11:58:58 AM - InstalledByMSI : False
2/21/2018 11:58:58 AM - SupportedFrameworkVersionRange : [4.5,)
2/21/2018 11:58:58 AM -
2/21/2018 11:58:58 AM - SignatureState : Unsigned
2/21/2018 11:58:58 AM - Supported Products :
2/21/2018 11:58:58 AM - Microsoft.VisualStudio.Community
2/21/2018 11:58:58 AM - Version : [12.0,15.0)
2/21/2018 11:58:58 AM - Microsoft.VisualStudio.Premium
2/21/2018 11:58:58 AM - Version : [12.0,15.0)
2/21/2018 11:58:58 AM - Microsoft.VisualStudio.Pro
2/21/2018 11:58:58 AM - Version : [12.0,15.0)
2/21/2018 11:58:58 AM - Microsoft.VisualStudio.Ultimate
2/21/2018 11:58:58 AM - Version : [12.0,15.0)
2/21/2018 11:58:58 AM - Microsoft.VisualStudio.Enterprise
2/21/2018 11:58:58 AM - Version : [12.0,15.0)
2/21/2018 11:58:58 AM -
2/21/2018 11:58:58 AM - References :
2/21/2018 11:58:58 AM - Signature Details...
2/21/2018 11:58:58 AM - Extension is not signed.
2/21/2018 11:58:58 AM -
2/21/2018 11:58:58 AM - Searching for applicable products...
2/21/2018 11:58:58 AM - Found installed product - Global Location
2/21/2018 11:58:58 AM - Found installed product - Visual Studio Community 2017
2/21/2018 11:58:58 AM - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
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()

谁能帮我解决这个问题?

最佳答案

查看您包含的日志文件,您的计算机上安装了 VS2017 社区,我们可以在日志文件的后半部分看到这一点。从日志中间我们可以看到,VS2012 & VS2015 community/ultimate/premium/professional/enterprise 支持这个扩展。因此,您会收到错误消息:

This extension is not installable on any currently installed products.

解决办法是直接下载VS2017社区的扩展版本。

但是,如果这不能解决问题,there is a solution to a similar issue here .

上述解决方案的要点是:

  • 原来.vsix扩展名只是一个.zip文件。
  • 将扩展名从 .vsix 重命名为 .zip
  • 在文件夹中找到名为 extension.vsixmanifest 的文件,然后在记事本等文本编辑器中打开它。
  • 使用 Ctrl + F 找到 Supported Products 部分。
  • 添加以下内容:
    <VisualStudio Version="15.0"> <!-- VS2017 -->
<Edition>Community</Edition>
<Edition>Ultimate</Edition>
<Edition>Premium</Edition>
<Edition>Pro</Edition>
</VisualStudio>
  • 保存并关闭文件。
  • 将扩展名从 .zip 重命名为 .vsix
  • 双击运行。

关于visual-studio - VSIX 安装程序扩展不可安装在任何当前安装的产品上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48899683/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com