我在安装自编的Visual Studio扩展时收到以下错误,该扩展肯定在以前版本的Visual Studio 2017中有效。
此扩展不可安装在任何当前安装的产品上
日志中的相关摘录如下:
19-Dec-16 9:59:50 AM - Searching for applicable products...
19-Dec-16 9:59:51 AM - Found installed product - Global Location
19-Dec-16 9:59:51 AM - Found installed product - ssms
19-Dec-1> 9:59:51 AM - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
at VSIXInstaller.App.InitializeInstall(Boolean isRepairSupported)
我希望看到更多类似的东西
3/15/2/17 2:21:54 PM - Searching for applicable products...
3/15/2017 2:21:54 PM - Found installed product - Microsoft Visual Studio Enterprise 2017
3/15/2017 2:21:54 PM - Found installed product - Microsoft Visual Studio Professional 2017
3/15/2017 2:21:54 PM - Found installed product - Microsoft Visual Studio Community 2017
3/15/2017 2:21:54 PM - Found installed product -> Global Location
互联网搜索没有抛出任何有趣的东西,我也无法"修复"这个问题,但是卸载Visual Studio并重新安装它确实起到了作用。
您应该尝试在 vsix 清单中检查支持的视觉工作室风格。对于 v.3 格式,范围列中的正确数字通常以括号结尾,即版本号不包含在范围内。递增此数字,重新生成并尝试重新安装 vsix。