2012-12-10 38 views
1

我在預生成事件下面一行:的Visual Studio內置Nant.exe退出,代碼爲1

"$(SolutionDir)SolutionItems\NAnt\bin\NAnt.exe" configMerge -D:buildfile="$(SolutionDir)SolutionItems\NAnt\default.build" -D:sourcefile="$(SolutionDir)Web\web.format.config" -D:destinationfile="$(SolutionDir)Web\web.config" 

它提供了以下錯誤:

Error 191 The command ""D:\Projects\trunk\SolutionItems\NAnt\bin\NAnt.exe" configMerge -D:buildfile="D:\Projects\trunk\SolutionItems\NAnt\default.build" -D:sourcefile="D:\Projects\trunk\Web\web.format.config" -D:destinationfile="D:\Projects\trunk\Web\web.config"" exited with code 1. 

任何想法,爲什麼它說代碼1?我也嘗試過沒有參數,那也不管用。 Nant.exe是否可以在預生成事件中工作?

我知道還有更多這樣的問題。但他們都沒有給我答案來解決我的問題。

回答

1

代碼1表示構建失敗。仔細觀察輸出,看看是否有什麼東西告訴你爲什麼構建失敗。

相關問題