nuget无法识别为内部或外部命令 [英] nuget is not a recognized as an internal or external command
问题描述
运行批处理文件时,出现以下错误:
nuget不被识别为内部或外部命令
无法正常工作从命令提示符。看看下面的截图。
While running a batch file, I get the below error:
nuget is not a recognized as an internal or external command
It's not working from command prompt. Have a look at the below screenshot.
推荐答案
nuget不是识别为内部或外部命令
nuget is not a recognized as an internal or external command
由于NuGet是外部命令,Windows无法在任意目录中识别该命令,因此应该在存在NuGet.exe的路径中键入 NuGet
或 NuGet.exe
,如果需要在任意目录中键入它,您应该从 NuGet.org 并将 NuGet.exe
的本地路径设置为您的路径环境变量。
That because NuGet is a external command, can not be recognized by Windows in an arbitrary directory, you should type the "NuGet
" or "NuGet.exe
" in the path where NuGet.exe exists and if you want type it in an arbitrary directory, you should download the NuGet.exe (Not VSIX) from NuGet.org and set the local path of NuGet.exe
into your path environment variable.
这篇关于nuget无法识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!