2017-08-15 302 views
7

當我鍵入CMD公司整個屏幕dotnet --infoFailed to leave breadcrumb.NET的核心,無法生成的dotnet --info

覆蓋哪些原因會導致這樣的行爲?在谷歌搜索,但似乎我是唯一有這個問題的人。最近,當我試圖與Visual Studio代碼工作,我安裝了一個C#的擴展,打開了我的cs文件,我得到這個消息

Updating C# dependencies... 
Platform: win32, x86_64 

Downloading package 'OmniSharp for Windows (.NET 4.6/x64)' (21928 KB) .................... Done! 
Downloading package '.NET Core Debugger (Windows/x64)' (39217 KB) .................... Done! 

Installing package 'OmniSharp for Windows (.NET 4.6/x64)' 
Installing package '.NET Core Debugger (Windows/x64)' 

Finished 
Failed to spawn 'dotnet --info' 

回答

1

我跑在這個自己。

您可能錯過了標題中指向此URL的信息位。 https://www.microsoft.com/net/core#macos

您需要安裝.net內核。

+0

我已經重新安裝了它幾乎5次嘗試每一個可能的設置 –

1

首先,你需要安裝.NET Framework

你還需要在那裏dotnet.exe存在(像).NET SDK

打開CMD

C:\Program Files\dotnet\dotnet.exe 

在cmd中運行followind

dotnet --info