Cruise Control.net Ms Build Task设置XML输出名称

时间:2010-01-27 15:08:36

标签: msbuild-task

我们正在运行CruiseControl.net的1.5.6755.1版本。这是执行构建

的块
<!-- MSBuild of Source Code  -->
  <cb:define name="BuildOneProject-block">
    <msbuild>
      <executable>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable>
      <!-- Directory where source is -->
      <workingDirectory>D:\CC\$(AppName)\Source</workingDirectory>
      <!-- Solution file to be built-->
      <projectFile>D:\CC\$(AppName)\Source\$(ProjectName)\$(ProjectName).csproj</projectFile>
      <buildArgs>/noconsolelogger /p:SolutionName=\$(AppName) /p:SolutionDir=D:\CC\$(AppName)\Source /p:Configuration=$(ReleaseOrDebug) /v:diag</buildArgs>
      <targets>Build</targets>
      <timeout>900</timeout>
      <logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
    </msbuild>
  </cb:define>

运行时,它会生成一个名称为..

的文件

msbuild-results-5cb1c8fa-1bba-4e97-a0b1-b2bf637308dc.xml

MsBuild任务上是否有另一个标签允许我命名xml文件? Logger是否有一个参数允许我指定xml文件的名称?

2 个答案:

答案 0 :(得分:0)

从文档中看起来不像。如果名称很重要,您可以使用<exec>代替并指定所有内容。

答案 1 :(得分:0)

http://groups.google.com.ag/group/ccnet-user/browse_thread/thread/1aa2a6a30fd715c3

看起来记录器将采用一个输入,即输出文件名。我试过改变

<logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>

<logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll , msbuild-results-$(ProjectName)</logger>

但仍然没有快乐