Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.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
msbuild和cruiscontrol.net_Msbuild_Cruisecontrol.net - Fatal编程技术网

msbuild和cruiscontrol.net

msbuild和cruiscontrol.net,msbuild,cruisecontrol.net,Msbuild,Cruisecontrol.net,我试图在Die cruisecontrol中调用一个批处理文件,该批处理文件在.sln C#项目上调用msbuild。我无法使其正常工作,出现以下错误: 未将“msBuild”识别为内部或外部命令 有什么想法吗 谢谢在执行MSBuild任务时,为什么要调用批处理文件 另外-您可能需要确保批处理文件在CruiseControl.Net之外工作。听起来好像“msbuild”不在您的搜索路径中。更新“path”环境变量或指定msbuild.exe文件的完整路径。您必须将指定的完整路径放入msbuil

我试图在Die cruisecontrol中调用一个批处理文件,该批处理文件在.sln C#项目上调用msbuild。我无法使其正常工作,出现以下错误:
未将“msBuild”识别为内部或外部命令 有什么想法吗


谢谢

在执行MSBuild任务时,为什么要调用批处理文件


另外-您可能需要确保批处理文件在CruiseControl.Net之外工作。

听起来好像“msbuild”不在您的搜索路径中。更新“path”环境变量或指定msbuild.exe文件的完整路径。

您必须将指定的完整路径放入msbuild:


C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe

如果有帮助,下面是我的一个MSBuild任务的示例

<tasks>
  <msbuild>
    <executable>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable>
    <workingDirectory>D:\INETPUB\wwwroot\CruiseControl\Utilities\</workingDirectory>
    <projectFile>Utilities.csproj</projectFile>
    <timeout>900</timeout>
    <logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
  </msbuild>
  <artifactcleanup   cleanUpMethod="KeepLastXBuilds"   cleanUpValue="5" />
</tasks>

C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe
D:\INETPUB\wwwroot\CruiseControl\Utilities\
公用事业公司
900
C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll