2017-01-23 47 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的路徑添加到該變量的前綴爲;

相關問題