我尝试在visual studio 2017社区离线安装objc-syntax-highlighting.vsix。我无法重新获得它。我已从https://github.com/Microsoft/WinObjC/releases下载了扩展程序包,并尝试从0.2预览(2017年12月)安装程序包
2/21/2018 11:58:55 AM - Microsoft VSIX Installer
2/21/2018 11:58:55 AM - -------------------------------------------
2/21/2018 11:58:55 AM - vsixinstaller.exe version:
2/21/2018 11:58:55 AM - 15.5.99+g87f89a485e
2/21/2018 11:58:55 AM - -------------------------------------------
2/21/2018 11:58:55 AM - Command line parameters:
2/21/2018 11:58:55 AM - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\lenovo\AppData\Local\Temp\Rar$DIa10400.20842\objc-syntax-highlighting.vsix
2/21/2018 11:58:55 AM - -------------------------------------------
2/21/2018 11:58:55 AM - Microsoft VSIX Installer
2/21/2018 11:58:55 AM - -------------------------------------------
2/21/2018 11:58:58 AM - Initializing Install...
2/21/2018 11:58:58 AM - Extension Details...
2/21/2018 11:58:58 AM - Identifier : VSIX..9c35fff1-f084-44c1-a38e-68c707163aa2
2/21/2018 11:58:58 AM - Name : Objective-C Language Service
2/21/2018 11:58:58 AM - Author : Microsoft
2/21/2018 11:58:58 AM - Version : 1.5
2/21/2018 11:58:58 AM - Description : This package contains Objective-C language service components such as syntax higlighting etc
2/21/2018 11:58:58 AM - Locale : en-US
2/21/2018 11:58:58 AM - MoreInfoURL :
2/21/2018 11:58:58 AM - InstalledByMSI : False
2/21/2018 11:58:58 AM - SupportedFrameworkVersionRange : [4.5,)
2/21/2018 11:58:58 AM -
2/21/2018 11:58:58 AM - SignatureState : Unsigned
2/21/2018 11:58:58 AM - Supported Products :
2/21/2018 11:58:58 AM - Microsoft.VisualStudio.Community
2/21/2018 11:58:58 AM - Version : [12.0,15.0)
2/21/2018 11:58:58 AM - Microsoft.VisualStudio.Premium
2/21/2018 11:58:58 AM - Version : [12.0,15.0)
2/21/2018 11:58:58 AM - Microsoft.VisualStudio.Pro
2/21/2018 11:58:58 AM - Version : [12.0,15.0)
2/21/2018 11:58:58 AM - Microsoft.VisualStudio.Ultimate
2/21/2018 11:58:58 AM - Version : [12.0,15.0)
2/21/2018 11:58:58 AM - Microsoft.VisualStudio.Enterprise
2/21/2018 11:58:58 AM - Version : [12.0,15.0)
2/21/2018 11:58:58 AM -
2/21/2018 11:58:58 AM - References :
2/21/2018 11:58:58 AM - Signature Details...
2/21/2018 11:58:58 AM - Extension is not signed.
2/21/2018 11:58:58 AM -
2/21/2018 11:58:58 AM - Searching for applicable products...
2/21/2018 11:58:58 AM - Found installed product - Global Location
2/21/2018 11:58:58 AM - Found installed product - Visual Studio Community 2017
2/21/2018 11:58:58 AM - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
at VSIXInstaller.App.GetInstallableData(String vsixPath, Boolean isRepairSupported, IEnumerable`1& skuData)
at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
at VSIXInstaller.App.Initialize()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
有谁可以帮我解决这个问题?
答案 0 :(得分:2)
您使用了错误的扩展程序。对于Visual Studio 2017,请安装支持VS2015和Visual Studio 2017的objc-language-services-VS2017.vsix
。
答案 1 :(得分:1)
该软件包只能安装在VS,2015及更早版本中,请向作者索取更新
答案 2 :(得分:1)
查看其中包含的日志文件,您在计算机上安装了VS2017社区,我们可以在日志文件的后半部分看到此确认。从日志中间,我们可以看到VS2012和VS2015 community / ultimate / premium / professional / enterprise支持此扩展。因此,您会收到错误消息:
此扩展程序不能安装在任何当前已安装的产品上。
解决方案是仅下载VS2017社区的扩展版本。
但是,如果不能解决问题,there is a solution to a similar issue here。
以上解决方案的要旨是:
.visx
扩展名只是一个.zip
文件。.visx
重命名为.zip
extension.vsixmanifest
的文件,然后在文本编辑器(如记事本)中打开它。Ctrl + F
查找Supported Products
部分。 <VisualStudio Version="15.0"> <!-- VS2017 -->
<Edition>Community</Edition>
<Edition>Ultimate</Edition>
<Edition>Premium</Edition>
<Edition>Pro</Edition>
</VisualStudio>
.zip
重命名为.visx