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 是否仍然适用于预构建事件?

我知道还有更多这样的问题。但是他们都没有给我答案来解决我的问题。

4

1 回答 1

1

代码 1 表示 nant 构建失败。仔细查看输出,看看是否有东西告诉您构建失败的原因。

于 2013-06-04T11:55:10.610 回答