Visual Studio 2022社区版安装GitHub Copilot报错求助
问题描述
我使用的是Visual Studio Community 2022版本17.5.1,尝试安装GitHub Copilot时出现如下错误:
The extension is not installable on any current installed products.
完整错误日志
8/3/2023 9:44:29 PM - Microsoft VSIX Installer 8/3/2023 9:44:29 PM - ------------------------------------------- 8/3/2023 9:44:29 PM - vsixinstaller.exe version: 8/3/2023 9:44:29 PM - 17.5.4065+gbda5f544dc 8/3/2023 9:44:29 PM - ------------------------------------------- 8/3/2023 9:44:29 PM - Command line parameters: 8/3/2023 9:44:29 PM - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\vsixinstaller.exe,/appidinstallpath:C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe,/skuName:Community,/skuVersion:17.5.33424.131,/appidname:Microsoft Visual Studio Community 2022,/culture:en-US,/noep,C:\Users\stan\AppData\Local\Temp\VSIXghffgjr3.vsix 8/3/2023 9:44:29 PM - ------------------------------------------- 8/3/2023 9:44:29 PM - Microsoft VSIX Installer 8/3/2023 9:44:29 PM - ------------------------------------------- 8/3/2023 9:44:29 PM - Initializing Install... 8/3/2023 9:44:29 PM - Extension Details... 8/3/2023 9:44:29 PM - Identifier : GitHub.Copilot 8/3/2023 9:44:29 PM - Name : GitHub Copilot 8/3/2023 9:44:29 PM - Author : GitHub 8/3/2023 9:44:29 PM - Version : 1.94.0.0 8/3/2023 9:44:29 PM - Description : GitHub Copilot is an AI pair programmer that helps you write code faster and with less work. Requires Visual Studio 2022 17.5.5 or later. 8/3/2023 9:44:29 PM - Locale : en-US 8/3/2023 9:44:29 PM - MoreInfoURL : 8/3/2023 9:44:29 PM - InstalledByMSI : False 8/3/2023 9:44:29 PM - SupportedFrameworkVersionRange : [0.0,2147483647.2147483647] 8/3/2023 9:44:30 PM - SignatureState : ValidSignature 8/3/2023 9:44:30 PM - SignedBy : GitHub, Inc. 8/3/2023 9:44:30 PM - Certificate Info : 8/3/2023 9:44:30 PM - ------------------------------------------------------- 8/3/2023 9:44:30 PM - [Subject] : CN="GitHub, Inc.", O="GitHub, Inc.", L=San Francisco, S=California, C=US 8/3/2023 9:44:30 PM - [Issuer] : CN=DigiCert Trusted G4 Code Signing RSA4096 SHA384 2021 CA1, O="DigiCert, Inc.", C=US 8/3/2023 9:44:30 PM - [Serial Number] : 0ED17E3276477EECDEDE0A65744ABC0E 8/3/2023 9:44:30 PM - [Not Before] : 2/9/2023 6:00:00 PM 8/3/2023 9:44:30 PM - [Not After] : 2/13/2024 5:59:59 PM 8/3/2023 9:44:30 PM - [Thumbprint] : 0C5C3D5588A23CC0B287C00262D03CC3F6F4A7FB 8/3/2023 9:44:30 PM - Supported Products : 8/3/2023 9:44:30 PM - Microsoft.VisualStudio.Community 8/3/2023 9:44:30 PM - Version : [17.5.33627,18.0) 8/3/2023 9:44:30 PM - ProductArchitecture : amd64 8/3/2023 9:44:30 PM - References : 8/3/2023 9:44:30 PM - Prerequisites : 8/3/2023 9:44:30 PM - ------------------------------------------------------- 8/3/2023 9:44:30 PM - Identifier : Microsoft.VisualStudio.Component.IntelliCode 8/3/2023 9:44:30 PM - Name : IntelliCode 8/3/2023 9:44:30 PM - Version : [17.4.33213,18.0) 8/3/2023 9:44:30 PM - Signature Details... 8/3/2023 9:44:30 PM - Extension is signed with a valid signature. 8/3/2023 9:44:30 PM - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products. at VSIXInstaller.ExtensionService.GetInstallableDataImpl(IInstallableExtension extension, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData) at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData) at VSIXInstaller.ExtensionService.ComputeInstallableExtensions(IStateData stateData, Boolean isRepairSupported, Boolean isExtensionPack, IDictionary`2 skuDataMapping, IList`1 installableExtensionsPaths) at VSIXInstaller.App.Initialize(Boolean isRepairSupported) at VSIXInstaller.App.Initialize() at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.Execute()
我已尝试重新安装该扩展,但问题未解决,且在StackOverflow上未找到有效建议,恳请帮助。
解决方案
从错误日志可明确两个核心限制:
- GitHub Copilot 1.94.0.0要求Visual Studio 2022 17.5.5或更高版本,当前使用的17.5.1低于最低要求。
- 扩展支持的VS社区版版本范围为
[17.5.33627,18.0),而当前VS版本号17.5.33424.131不在此区间内。
解决步骤:
- 更新Visual Studio到17.5.5或更高版本
- 打开Visual Studio Installer,点击"更新"按钮升级到符合要求的版本。
- 升级完成后重启Visual Studio。
- 检查并安装IntelliCode组件
扩展依赖IntelliCode(版本要求[17.4.33213,18.0)),若未安装:- 在Visual Studio Installer中选择"修改",切换到"单个组件"标签。
- 搜索"IntelliCode",勾选对应组件后点击"修改"完成安装。
- 重新安装GitHub Copilot
完成上述操作后,可在Visual Studio扩展管理器中搜索GitHub Copilot并安装,或重新运行之前的VSIX安装包。
内容的提问来源于stack exchange,提问作者StanM
相关产品推荐
相关产品推荐

