![我可以为 Visual Studio 2019 安装“JSON Viewer”扩展吗?](https://linux22.com/image/1587777/%E6%88%91%E5%8F%AF%E4%BB%A5%E4%B8%BA%20Visual%20Studio%202019%20%E5%AE%89%E8%A3%85%E2%80%9CJSON%20Viewer%E2%80%9D%E6%89%A9%E5%B1%95%E5%90%97%EF%BC%9F.png)
将 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 中的数据,发现:
答案1
将 Visual Studio 升级到 2019 版本后,我无法安装 JSON View 扩展。
根据清单文件,该扩展与 Visual Studio 2019 不兼容。当然,清单文件实际上似乎不适用于您尝试安装的扩展(唯一哈希不匹配)。您必须等待作者更新它。
当 Visual Studio 2019 发布时,此扩展的市场下载会自动更新,以表明其兼容,但查看扩展的代码,由于它使用的软件包,这是不可能的。
我还查看了扩展的实际清单文件,并且先决条件也设置为 15.0 而不是 16.0,如果不重新编译,扩展就无法支持 VS2019。