visual-studio - 术语 'dotnet' 未被识别

标签 visual-studio .net-core

带着极大的挫败感,我一直在尝试解决 Visual Studio Code 中的以下错误:

The term 'dotnet' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the 
name, or if a path was included, verify that the path is correct and
try again. 
At line:1 char:7 + dotnet <<<<  --info
    + CategoryInfo          : ObjectNotFound: (dotnet:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

我研究了很远,但无济于事。我已经尝试了许多其他人的解决方案,但错误仍然存​​在。我已经多次安装、修复和卸载必要的安装文件...错误仍然存​​在!

我正在运行带有所有更新的 Win7 Pro。 VS 代码 1.28.2。 NET 核心 SDK 2.1.403。

我期待任何建议/指示/见解。

最佳答案

是否在您的 PATH 环境变量中正确设置了 dotnet 二进制文件? 对于 Windows:https://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/

关于visual-studio - 术语 'dotnet' 未被识别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53169159/

相关文章:

c# - Microsoft Graph 异常 : New password credentials must be generated using service actions

windows - 已安装程序集的桌面图标上有两个蓝色箭头

c++ - 当我尝试使用 xerces "visual studio 2010"释放内存时,我的项目崩溃了

c# - 无法跟踪实体类型 'Profile' 的实例,因为已在跟踪键值为 '{Id: 1087}' 的另一个实例

c# - 将文档添加到 Azure Cosmos DB 时缺少属性

.net - .net vNext 到底是什么。 .net core vs vNext 差异/解释

python - TypeError : __init__() got an unexpected keyword argument 'checksec'

asp.net-mvc - 编辑 View 时运行 MVC 项目的问题

c# - 如何在 net core C# 中获取当前环境 (QA/Prod/DEV) 名称?

asp.net-core - 在没有 Visual Studio 2015 的情况下配置 .NET Core Web 应用程序启动设置