我将 Visual Studio 升级到 2019 版本后,无法安装 JSON View 扩展。
> 4/10/2019 9:51:09 AM - Skipping 'C:\Users\DELL\AppData\Local\Microsoft > SDKs' as it doesn't exist 4/10/2019 9:51:09 AM - The extension with ID > 'c21a2a7b-7b1c-45c9-bee3-3bdc0715bdc9' is not installed to Microsoft > Visual Studio Community 2019. 4/10/2019 9:51:10 AM - Extension cannot > be installed to the following products due to missing prerequisites: > 4/10/2019 9:51:10 AM - Microsoft Visual Studio Community 2019 > 4/10/2019 9:51:10 AM - > ------------------------------------------------------- 4/10/2019 > 9:51:10 AM - Identifier : > Microsoft.VisualStudio.Component.CoreEditor 4/10/2019 9:51:10 AM - > Name : Microsoft.VisualStudio.Component.CoreEditor 4/10/2019 > 9:51:10 AM - Version : [15.0,16.0) 4/10/2019 9:51:10 AM - > Error : The prerequisite version specified does not match the > version installed 4/10/2019 9:51:10 AM - 4/10/2019 9:51:14 AM - > InstallProgressPage ChangeType: 'SingleTarget' operationCount: '2' > Text: 'Modifying Microsoft Visual Studio Community 2019...' 4/10/2019 > 9:51:14 AM - The following target products have been selected... > 4/10/2019 9:51:14 AM - Microsoft Visual Studio Community 2019 > 4/10/2019 9:51:14 AM - 4/10/2019 9:51:14 AM - Capping recursion at 5 > directories in each extension root due to 'default limit'.
我还检查了我发现的 extension.vsixmanifest 中的数据:
根据清单文件,该扩展与 Visual Studio 2019 不兼容。当然,清单文件实际上并不适用于您尝试安装的扩展(唯一哈希不匹配)。只能等作者更新了。
此扩展的市场下载在 Visual Studio 2019 发布时自动更新以表明它是兼容的,但查看扩展的代码由于它使用的包而无法实现。
我还查看了扩展的实际清单文件,先决条件也设置为 15.0 而不是 16.0,如果不重新编译,扩展将无法支持 VS2019。