找不到与命令"nuget"匹配的可执行文件



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

Error       No executable found matching command "nuget"

我还在我的project.json文件中添加了一个编译后脚本,作为

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

我一直在这条路上.exe

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

最新更新