【问题标题】:.NET Core, failed to spawn dotnet --info.NET Core,无法生成 dotnet --info
【发布时间】:2018-01-23 17:47:50
【问题描述】:

当我在 cmd 中输入dotnet --info 时,整个屏幕都被Failed to leave breadcrumb 覆盖

什么会导致这种行为?在谷歌上搜索,但似乎我是唯一有这个问题的人。最近,当我尝试使用 Visual Studio Code 时,我安装了一个 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'

【问题讨论】:

    标签: c# .net visual-studio visual-studio-code .net-core


    【解决方案1】:

    我自己也遇到过。

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

    您需要安装 .net core。

    【讨论】:

    • 我已经重装了将近 5 次,尝试了所有可能的设置
    【解决方案2】:

    首先你需要安装.NET Framework

    你还需要.NET SDK

    打开 dotnet.exe 所在的 cmd (like)

    C:\Program Files\dotnet\dotnet.exe
    

    在cmd中运行以下命令

    dotnet --info
    

    【讨论】:

    • .NET Framework 和 .NET Core 是两个相互竞争的框架。如果需要 .NET Core,则无需安装 .NET Framework。
    • vscode 的 choco 安装程序也会安装 .NET Framework。不知道为什么会这样。
    猜你喜欢
    • 2020-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-27
    • 2020-02-09
    • 1970-01-01
    • 1970-01-01
    • 2017-11-10
    相关资源
    最近更新 更多