VSIX 安装程序 "This Extension is not installable on any currently installed products."

VSIX Installer "This Extension is not installable on any currently installed products."

我在寻找解决方案时发现了许多类似的问题,但在其他情况下,问题似乎是用户使用了错误版本的 visual studio。

2/6/2022 12:29:06 AM - Microsoft VSIX Installer
2/6/2022 12:29:06 AM - -------------------------------------------
2/6/2022 12:29:06 AM - vsixinstaller.exe version:
2/6/2022 12:29:06 AM - 17.0.5226-preview5
2/6/2022 12:29:06 AM - -------------------------------------------
2/6/2022 12:29:06 AM - Command line parameters:
2/6/2022 12:29:06 AM - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\Foster\Downloads\VersionChanger.vsix
2/6/2022 12:29:06 AM - -------------------------------------------
2/6/2022 12:29:06 AM - Microsoft VSIX Installer
2/6/2022 12:29:06 AM - -------------------------------------------
2/6/2022 12:29:06 AM - Initializing Install...
2/6/2022 12:29:06 AM - Extension Details...
2/6/2022 12:29:06 AM - Identifier : VersionChanger.315c8ff9-932e-4b23-b9d8-0fcd23bdb0be
2/6/2022 12:29:06 AM - Name : Version Changer
2/6/2022 12:29:06 AM - Author : DSoft Developments
2/6/2022 12:29:06 AM - Version : 2.3.2
2/6/2022 12:29:06 AM - Description : Visual Studio extension that allows you to change the version number of all projects in a solution in a easy to user interface.
2/6/2022 12:29:06 AM - Locale : en-US
2/6/2022 12:29:06 AM - MoreInfoURL : https://visualstudiogallery.msdn.microsoft.com/554c35ef-fe76-4138-b60e-a44b72ade70e\ 2/6/2022 12:29:06 AM - InstalledByMSI : False
2/6/2022 12:29:06 AM - SupportedFrameworkVersionRange : [4.6,)
2/6/2022 12:29:06 AM -
2/6/2022 12:29:06 AM - SignatureState : Unsigned
2/6/2022 12:29:06 AM - Supported Products :
2/6/2022 12:29:06 AM - Microsoft.VisualStudio.Community
2/6/2022 12:29:06 AM - Version : [15.0,17.0)
2/6/2022 12:29:06 AM - ProductArchitecture : x86
2/6/2022 12:29:06 AM - Microsoft.VisualStudio.Pro
2/6/2022 12:29:06 AM - Version : [15.0,17.0)
2/6/2022 12:29:06 AM - ProductArchitecture : x86
2/6/2022 12:29:06 AM - Microsoft.VisualStudio.Enterprise
2/6/2022 12:29:06 AM - Version : [15.0,17.0)
2/6/2022 12:29:06 AM - ProductArchitecture : x86
2/6/2022 12:29:06 AM -
2/6/2022 12:29:06 AM - References :
2/6/2022 12:29:06 AM - Prerequisites :
2/6/2022 12:29:06 AM - -------------------------------------------------------
2/6/2022 12:29:06 AM - Identifier : Microsoft.VisualStudio.Component.CoreEditor
2/6/2022 12:29:06 AM - Name : Visual Studio core editor
2/6/2022 12:29:06 AM - Version : [15.0,)
2/6/2022 12:29:06 AM - 2/6/2022 12:29:06 AM - Signature Details...
2/6/2022 12:29:06 AM - Extension is not signed.
2/6/2022 12:29:06 AM - 2/6/2022 12:29:06 AM - Searching for applicable products...
2/6/2022 12:29:06 AM - Found installed product - Global Location
2/6/2022 12:29:06 AM - Found installed product - Visual Studio Community 2022
2/6/2022 12:29:06 AM - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products. at VSIXInstaller.ExtensionService.GetInstallableDataImpl(IInstallableExtension extension, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable1& skuData)\ at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable1& skuData)
at VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)
at VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)
at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
at VSIXInstaller.App.Initialize()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)\

据我所知,我使用的是正确的版本。我是第一次安装Visual Studio,根据微软官网下载的版本好像是17.0。我已经尝试重新安装、修复和重新启动我的计算机,但没有任何效果。

编辑:我安装了 VS 2019,它现在似乎已经解决了我的问题,但我仍然更愿意使用 VS 2022;是不是版本有问题,我看不出来?

您安装的扩展适用于 Visual Studio 2017, 2019,并且来自堆栈跟踪:

Found installed product - Visual Studio Community 2022

所以要么安装 visual studio 2017/2019,要么使用 this version,它适用于 visual studio 2022。