Visual studio 术语';dotnet';不被承认

Visual studio 术语';dotnet';不被承认,visual-studio,.net-core,Visual Studio,.net Core,带着极大的挫败感,我一直在尝试解决Visual Studio代码中的以下错误: 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

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

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
术语“dotnet”未被识别为cmdlet的名称,
函数、脚本文件或可操作程序。检查单词的拼写
名称,或者如果包含路径,请验证该路径是否正确,并且
再试一次。

第1行char:7+dotnet在PATH环境变量中是否正确设置了dotnet二进制文件?
对于windows:

同样的事情也发生在我身上,我所需要做的就是安装 .NET Core SDK for vs code(来自Microsoft)链接如下:


显然,您正在运行powershell脚本。你能把它贴在你的问题旁边吗?谢谢你的回复。目前,我没有运行PowerShell脚本,只是在命令提示符下输入dotnet--info…您还可以查看感谢您的输入。我相信我有正确的路径信息。给你:;C:\Users\Matt\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Matt\.dotnet\Tools我现在没有windows,但非常确定dotnet cli类似于:C:\Program Files\dotnet\sdk\x.x.x\,确认机器上的路径,然后将其添加到path env变量中,重新启动VS代码,应该可以