2017-01-23 49 views
0

虽然编译项目,它抛出的错误如下没有可执行找到匹配命令“的NuGet”

Error  No executable found matching command "nuget" 

我也在我project.json文件添加一个postcompile脚本

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

我有保持该路径上的nuget.exe。

+0

你把nuget.exe的位置放在PATH变量中吗? –

回答

0

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

相关问题