首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >VSCode只能在安装C#扩展时才能检测到安装

VSCode只能在安装C#扩展时才能检测到安装
EN

Stack Overflow用户
提问于 2018-06-23 01:17:41
回答 1查看 898关注 0票数 3

我在1.24.1版。我尝试过的其他扩展的其他安装都成功了。

当我试图安装"C# for Visual“时,我得到了”未能安装'ms-vscode.csharp'“的错误。

然后我尝试手动安装v6文件,得到这个错误。

代码语言:javascript
复制
This extension is not installable on any currently installed products

下面是完整的日志:

代码语言:javascript
复制
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代码,即使它确实安装了。这是专门用于安装C#扩展的。

EN

回答 1

Stack Overflow用户

发布于 2018-06-23 04:00:52

OmniSharp/omnisharp-vscode似乎检测到了Visual (Community ),但没有检测到.Net核心。

如"在代码中使用.NET内核“所示,在安装该扩展之前,请确保首先安装了.Net核心SDK

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50997166

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档