Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2010 Visual Studio生成的Nant.exe已退出,代码为1_Visual Studio 2010_Nant - Fatal编程技术网

Visual studio 2010 Visual Studio生成的Nant.exe已退出,代码为1

Visual studio 2010 Visual Studio生成的Nant.exe已退出,代码为1,visual-studio-2010,nant,Visual Studio 2010,Nant,在预构建事件中,我有以下行: "$(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" 它给出了以下错误:

在预构建事件中,我有以下行:

"$(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意味着nant构建失败。仔细查看输出,看看是否有东西告诉您生成失败的原因。

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