【发布时间】:2018-06-23 01:17:41
【问题描述】:
我使用的是 1.24.1 版本。我尝试过的其他扩展的所有其他安装都有效。
当我尝试安装“C# for Visual Studio”时,我收到错误“无法安装 'ms-vscode.csharp'”。
然后我尝试手动安装 vsix 文件,我收到此错误。
This extension is not installable on any currently installed products
这是完整的日志:
6/22/2018 6:14:59 PM - Microsoft VSIX Installer 6/22/2018 6:14:59 PM -
-------------------------------------------
6/22/2018 6:14:59 PM - vsixinstaller.exe version:
6/22/2018 6:14:59 PM - 15.6.152+ge95e4dd1ce
6/22/2018 6:14:59 PM - -------------------------------------------
6/22/2018 6:14:59 PM - Command line parameters:
6/22/2018 6:14:59 PM -
C:\Program Files (x86)\Microsoft Visual
Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\Matthew\Downloads\ms-vscode.csharp-1.15.2(1).vsix
6/22/2018 6:14:59 PM --------------------------------------------
6/22/2018 6:14:59 PM - Microsoft VSIX Installer
6/22/2018 6:14:59 PM --------------------------------------------
6/22/2018 6:14:59 PM - Initializing Install...
6/22/2018 6:15:03 PM - Extension Details...
6/22/2018 6:15:03 PM - Identifier : csharp
6/22/2018 6:15:03PM - Name : C#
6/22/2018 6:15:03 PM - Author : ms-vscode
6/22/2018 6:15:03 PM - Version : 1.15.2
6/22/2018 6:15:03 PM - Description : C# for Visual Studio Code (powered by OmniSharp).
6/22/2018 6:15:03 PM - Locale : en-US
6/22/2018 6:15:03 PM - MoreInfoURL :
6/22/2018 6:15:03PM - InstalledByMSI : False
6/22/2018 6:15:03 PM - SupportedFrameworkVersionRange : [0.0,2147483647.2147483647]
6/22/2018 6:15:03 PM -
6/22/2018 6:15:03 PM - SignatureState : Unsigned
6/22/2018 6:15:03 PM - Supported Products :
6/22/2018 6:15:03 PM - Microsoft.VisualStudio.Code
6/22/2018 6:15:03 PM Version :
6/22/2018 6:15:03 PM -
6/22/2018 6:15:03 PM - References :
6/22/2018 6:15:03 PM - Signature Details...
6/22/2018 6:15:03 PM - Extension is not signed.
6/22/2018 6:15:03 PM -
6/22/2018 6:15:03 PM - Searching for applicable products...
6/22/2018 6:15:03 PM - Found installed product - Global Location
6/22/2018 6:15:03 PM - Found installed product - Visual Studio Community 2017
6/22/2018 6:15:03 PM - 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()
我已尝试重新安装扩展程序,重新安装 VScode,然后重新启动。
我不在代理或 vpn 后面。
错误似乎是它无法检测到 Visual Studio 代码,即使它确实已安装。这是安装 C# 扩展所独有的。
【问题讨论】: