【发布时间】:2021-01-10 03:14:13
【问题描述】:
非常沮丧,我一直在尝试解决 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 Core SDK 2.1.403。
我期待任何建议/指针/见解。
【问题讨论】:
-
显然您正在运行一个 powershell 脚本。你能把它和你的问题一起发布吗?
-
感谢您的回复。目前,我没有运行 PowerShell 脚本,只是在命令提示符处输入 dotnet --info...