找不到匹配命令的可执行文件“;nuget“;

找不到匹配命令的可执行文件“;nuget“;,nuget,Nuget,编译项目时,它抛出如下错误 Error No executable found matching command "nuget" 我还在project.json文件中添加了一个postcompile脚本,如下所示: "scripts": { "postcompile": [ "nuget pack project.json -outputdirectory f:\\foo" ] } 我已将nuget.exe保留在该路径上。在path变量中添加nuget.exe。转到系统属性环境

编译项目时,它抛出如下错误

Error       No executable found matching command "nuget"
我还在project.json文件中添加了一个postcompile脚本,如下所示:

"scripts": { "postcompile": [ "nuget pack project.json -outputdirectory f:\\foo" ] } 

我已将nuget.exe保留在该路径上。

在path变量中添加nuget.exe。转到系统属性环境变量->系统变量。然后编辑path变量,并将保存nuget.exe的路径添加到前缀为的变量中

您是否将nuget.exe的位置放在PATH变量中?