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

发布于 2024-08-19 08:00:36 字数 1141 浏览 3 评论 0原文

我们正在运行 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 文件的名称?

We are running version 1.5.6755.1 of CruiseControl.net. Here is our block that executes a build

<!-- 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>

When this run it generates a file with a name like..

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

Is there another tag on the MsBuild task that allows me to name the xml file? Is there an argument to the Logger that allows me to specify the name of the xml file?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

岁月静好 2024-08-26 08:00:36

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

Doesn't look like it from the documentation. If the name matters, you might be able to use <exec> instead and specify everything.

巨坚强 2024-08-26 08:00:36

来自

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>

但仍然没有喜悦

From

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

It looks like the logger will take one input which is the output file name. I tried changing

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

To

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

But still no joy

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文