.NET Core,无法生成dotnet --info

11 .net c# visual-studio .net-core visual-studio-code

当我输入dotnet --infocmd时,整个屏幕都被覆盖了Failed to leave breadcrumb

什么可以导致这种行为?在谷歌搜索但似乎我是唯一有这个问题的人.最近,当我尝试使用Visual Studio Code I安装了ac#extension并打开了我的.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'
Run Code Online (Sandbox Code Playgroud)

小智 2

我自己也遇到了这个问题。

您可能错过了标头中指向此 URL 的一些信息。 https://www.microsoft.com/net/core#macos

您需要安装.net core。