带着极大的挫败感,我一直在尝试解决 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/