FXcop 和 Msbuild 与 CruiseControl.NET

发布于 2024-11-16 01:34:38 字数 219 浏览 1 评论 0原文

我是新人,所以请耐心等待。我想知道如何让 MSbuild 和 FXcop 整夜运行,并在用户未完成而失败时通知用户。我被告知它们都可以集成到 CruiseControl.NET 中。我目前正在查看 CruiseControl.NET 是否能够通知用户构建失败。 (由于错误只完成了一半)。如果有人能够轻松地做到这一点,那么如果您能引导我思考或引导我找到文档,那就太好了。

感谢您抽出时间,丹尼斯·海登。 睡王

I'm new so please bear with me. I would like to know how to have MSbuild and FXcop run over night and to inform the users if they fail without finishing. I have been told they both can be integrated into CruiseControl.NET. I'm currently going to look to see if CruiseControl.NET has the ability to inform the users of a failed build. (As in only half way done due to an error). If anyone has been able to do this easily it will be wonderful if you can walk me thought it or lead me to the documents.

Thanks for your time,Dennis Hayden.
Sleepking

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

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

发布评论

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

评论(3

云朵有点甜 2024-11-23 01:34:38

您可以使用 任务来构建您的项目。 MsBuild 可在任务部分中使用。

<msbuild>
      <executable>
        C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe
      </executable>
      <workingDirectory>
        project path
      </workingDirectory>
      <projectFile>project.sln</projectFile>
      <buildArgs>
        /noconsolelogger
        /p:Configuration=Release
      </buildArgs>
      <targets>Build</targets>
      <timeout>900</timeout>
      <logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>

    </msbuild>

在任务部分有一个 标签,可用于运行 FxCop。

   <exec>
          <executable>c:\Program Files\Microsoft FxCop 1.36\FxCopCmd.exe</executable>
          <baseDirectory>project path</baseDirectory>
          <buildTimeoutSeconds>300</buildTimeoutSeconds>
 </exec>

请检查以下链接

ccnet1ccnet2

You can use <MsBuild> task to build your project. MsBuild is available inside task section.

<msbuild>
      <executable>
        C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe
      </executable>
      <workingDirectory>
        project path
      </workingDirectory>
      <projectFile>project.sln</projectFile>
      <buildArgs>
        /noconsolelogger
        /p:Configuration=Release
      </buildArgs>
      <targets>Build</targets>
      <timeout>900</timeout>
      <logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>

    </msbuild>

In task section there is an <exec> tag which can be used to run FxCop.

   <exec>
          <executable>c:\Program Files\Microsoft FxCop 1.36\FxCopCmd.exe</executable>
          <baseDirectory>project path</baseDirectory>
          <buildTimeoutSeconds>300</buildTimeoutSeconds>
 </exec>

please check the following links

ccnet1 and ccnet2

殤城〤 2024-11-23 01:34:38

在文档的 任务 部分,您应该看到MsBuild 的条目。要运行 FxCop,您可以通过 MsBuild 运行它,也可以使用可执行任务。

In the Tasks section of the documentation, you should see an entry for MsBuild. To run FxCop, you can either run it through MsBuild, or use the Executable task.

烂人 2024-11-23 01:34:38

还有一个很好的 MSBuild 社区任务 集合,支持 FxCop 以及一整套其他工具创建 CI 环境时会派上用场。

There is also a nice collection of MSBuild Community Tasks that have support for FxCop as well as a whole suite of other tools that come in handy when creating a CI environment.

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