正在为 VS2017 安装 GitHub 扩展 "This extension is not installable on any currently installed products"
Installing GitHub extension for VS2017 "This extension is not installable on any currently installed products"
在已安装的 Visual Studio Community 2017(版本 15.9.5)上,我正在尝试添加 Github 扩展。在 运行 安装 GitHub.VisualStudio.vsix 安装程序时,出现上述错误。我已经从安装日志中交叉检查了我的版本,但与关于该主题的其他问题不同,版本似乎不是问题。 [支持的版本是 [14.0,17.0) 和 [15.0 ,17.0) 分别用于 Community 和 IntegratedShell]
我已经尝试编辑 extension.vsixmanifest 文件,添加到 "Supported Products" 部分,但更改没有反映出来。
我第一次下载安装程序时没有显示此错误,而是要求我关闭所有 VS 实例。出于某种原因,我当时无法安装它,后来又重新启动了它。之后,这个错误一直存在。
因此,我多次尝试删除并重新下载它,并尝试在打开和关闭 VS 的情况下 运行 它。
我的安装日志文件如下所示:
03-05-2019 21:30:41 - Microsoft VSIX Installer
03-05-2019 21:30:41 - -------------------------------------------
03-05-2019 21:30:41 - Initializing Install...
03-05-2019 21:30:42 - Extension Details...
03-05-2019 21:30:42 - Identifier : c3d3dc68-c977-411f-b3e8-03b0dccf7dfc
03-05-2019 21:30:42 - Name : GitHub Extension for Visual Studio
03-05-2019 21:30:42 - Author : GitHub, Inc
03-05-2019 21:30:42 - Version : 2.9.0.7614
03-05-2019 21:30:42 - Description : A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
03-05-2019 21:30:42 - Locale : en-US
03-05-2019 21:30:42 - MoreInfoURL : https://visualstudio.github.com/
03-05-2019 21:30:42 - InstalledByMSI : False
03-05-2019 21:30:42 - SupportedFrameworkVersionRange : [4.5,)
03-05-2019 21:30:42 -
03-05-2019 21:30:43 - SignedBy : GitHub, Inc.
03-05-2019 21:30:43 - Certificate Info : [Subject]
CN="GitHub, Inc.", O="GitHub, Inc.", L=San Francisco, S=California, C=US
[Issuer]
CN=DigiCert SHA2 Assured ID Code Signing CA, OU=www.digicert.com, O=DigiCert Inc, C=US
[Serial Number]
013AA7BBB950DCCD25305F1602258B00
[Not Before]
23-11-2016 05:30:00
[Not After]
19-11-2019 17:30:00
[Thumbprint]
C4FDF13659F49E57AC14774FDF45053F499F185F
03-05-2019 21:30:43 - Supported Products :
03-05-2019 21:30:43 - Microsoft.VisualStudio.Community
03-05-2019 21:30:43 - Version : [14.0,17.0)
03-05-2019 21:30:43 - Microsoft.VisualStudio.IntegratedShell
03-05-2019 21:30:43 - Version : [15.0,17.0)
03-05-2019 21:30:43 -
03-05-2019 21:30:43 - References :
03-05-2019 21:30:43 - -------------------------------------------------------
03-05-2019 21:30:43 - Identifier : Microsoft.VisualStudio.MPF.14.0
03-05-2019 21:30:43 - Name : Visual Studio MPF 14.0
03-05-2019 21:30:43 - Version : [14.0,)
03-05-2019 21:30:43 - MoreInfoURL :
03-05-2019 21:30:43 - Nested : No
03-05-2019 21:30:43 -
03-05-2019 21:30:43 - -------------------------------------------------------
03-05-2019 21:30:43 - Identifier : Microsoft.VisualStudio.TeamFoundation.TeamExplorer.Extensions
03-05-2019 21:30:43 - Name : Team Explorer
03-05-2019 21:30:43 - Version : [14.0,)
03-05-2019 21:30:43 - MoreInfoURL :
03-05-2019 21:30:43 - Nested : No
03-05-2019 21:30:43 -
03-05-2019 21:30:43 -
03-05-2019 21:30:43 - Searching for applicable products...
03-05-2019 21:30:44 - Found installed product - Global Location
03-05-2019 21:30:44 - Found installed product - ssms
03-05-2019 21:30:44 - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
at VSIXInstaller.App.InitializeInstall(Boolean isRepairSupported)
at VSIXInstaller.App.InitializeInstall()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
不确定它是否来自 extensions.configurationchanged
文件。你可以尝试if devenv /updateconfiguration
命令并重新安装.vsix 可以修复它。
重现步骤:
我安装了相同的扩展程序并在安装成功之前中止了它。在这种情况下,实际上 .vsix 没有成功安装 yet.But 我无法重新安装它,因为安装程序似乎无法再找到我的 vs。
(在我看来,安装程序认为扩展已经安装但实际上并没有)
解决方法:
打开您的 VS2017 开发人员命令提示符,然后键入命令 devenv /updateconfiguration
,等待几秒钟(可能更长)直到其执行完成。
之后进入 C:\Program Files (x86)\Microsoft Visual Studio17\Community\Common7\IDE\Extensions
,删除 GitHub
文件夹(其中包含 GitHub 扩展的内容),然后重新运行 xxx.vsix 检查它是否找到您的VS2017产品。希望对你有帮助。
在已安装的 Visual Studio Community 2017(版本 15.9.5)上,我正在尝试添加 Github 扩展。在 运行 安装 GitHub.VisualStudio.vsix 安装程序时,出现上述错误。我已经从安装日志中交叉检查了我的版本,但与关于该主题的其他问题不同,版本似乎不是问题。 [支持的版本是 [14.0,17.0) 和 [15.0 ,17.0) 分别用于 Community 和 IntegratedShell]
我已经尝试编辑 extension.vsixmanifest 文件,添加到 "Supported Products" 部分,但更改没有反映出来。
我第一次下载安装程序时没有显示此错误,而是要求我关闭所有 VS 实例。出于某种原因,我当时无法安装它,后来又重新启动了它。之后,这个错误一直存在。 因此,我多次尝试删除并重新下载它,并尝试在打开和关闭 VS 的情况下 运行 它。 我的安装日志文件如下所示:
03-05-2019 21:30:41 - Microsoft VSIX Installer
03-05-2019 21:30:41 - -------------------------------------------
03-05-2019 21:30:41 - Initializing Install...
03-05-2019 21:30:42 - Extension Details...
03-05-2019 21:30:42 - Identifier : c3d3dc68-c977-411f-b3e8-03b0dccf7dfc
03-05-2019 21:30:42 - Name : GitHub Extension for Visual Studio
03-05-2019 21:30:42 - Author : GitHub, Inc
03-05-2019 21:30:42 - Version : 2.9.0.7614
03-05-2019 21:30:42 - Description : A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
03-05-2019 21:30:42 - Locale : en-US
03-05-2019 21:30:42 - MoreInfoURL : https://visualstudio.github.com/
03-05-2019 21:30:42 - InstalledByMSI : False
03-05-2019 21:30:42 - SupportedFrameworkVersionRange : [4.5,)
03-05-2019 21:30:42 -
03-05-2019 21:30:43 - SignedBy : GitHub, Inc.
03-05-2019 21:30:43 - Certificate Info : [Subject]
CN="GitHub, Inc.", O="GitHub, Inc.", L=San Francisco, S=California, C=US
[Issuer]
CN=DigiCert SHA2 Assured ID Code Signing CA, OU=www.digicert.com, O=DigiCert Inc, C=US
[Serial Number]
013AA7BBB950DCCD25305F1602258B00
[Not Before]
23-11-2016 05:30:00
[Not After]
19-11-2019 17:30:00
[Thumbprint]
C4FDF13659F49E57AC14774FDF45053F499F185F
03-05-2019 21:30:43 - Supported Products :
03-05-2019 21:30:43 - Microsoft.VisualStudio.Community
03-05-2019 21:30:43 - Version : [14.0,17.0)
03-05-2019 21:30:43 - Microsoft.VisualStudio.IntegratedShell
03-05-2019 21:30:43 - Version : [15.0,17.0)
03-05-2019 21:30:43 -
03-05-2019 21:30:43 - References :
03-05-2019 21:30:43 - -------------------------------------------------------
03-05-2019 21:30:43 - Identifier : Microsoft.VisualStudio.MPF.14.0
03-05-2019 21:30:43 - Name : Visual Studio MPF 14.0
03-05-2019 21:30:43 - Version : [14.0,)
03-05-2019 21:30:43 - MoreInfoURL :
03-05-2019 21:30:43 - Nested : No
03-05-2019 21:30:43 -
03-05-2019 21:30:43 - -------------------------------------------------------
03-05-2019 21:30:43 - Identifier : Microsoft.VisualStudio.TeamFoundation.TeamExplorer.Extensions
03-05-2019 21:30:43 - Name : Team Explorer
03-05-2019 21:30:43 - Version : [14.0,)
03-05-2019 21:30:43 - MoreInfoURL :
03-05-2019 21:30:43 - Nested : No
03-05-2019 21:30:43 -
03-05-2019 21:30:43 -
03-05-2019 21:30:43 - Searching for applicable products...
03-05-2019 21:30:44 - Found installed product - Global Location
03-05-2019 21:30:44 - Found installed product - ssms
03-05-2019 21:30:44 - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
at VSIXInstaller.App.InitializeInstall(Boolean isRepairSupported)
at VSIXInstaller.App.InitializeInstall()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
不确定它是否来自 extensions.configurationchanged
文件。你可以尝试if devenv /updateconfiguration
命令并重新安装.vsix 可以修复它。
重现步骤:
我安装了相同的扩展程序并在安装成功之前中止了它。在这种情况下,实际上 .vsix 没有成功安装 yet.But 我无法重新安装它,因为安装程序似乎无法再找到我的 vs。
(在我看来,安装程序认为扩展已经安装但实际上并没有)
解决方法:
打开您的 VS2017 开发人员命令提示符,然后键入命令 devenv /updateconfiguration
,等待几秒钟(可能更长)直到其执行完成。
之后进入 C:\Program Files (x86)\Microsoft Visual Studio17\Community\Common7\IDE\Extensions
,删除 GitHub
文件夹(其中包含 GitHub 扩展的内容),然后重新运行 xxx.vsix 检查它是否找到您的VS2017产品。希望对你有帮助。