cruisecontrol.net - 如何根据 .NET 代码的输出添加 Cruisecontrol.net 构建步骤

标签 cruisecontrol.net nant

我已经编写了一些代码,使用 IIS SEO 工具包 API 检查站点是否有损坏的链接。代码的界面很好很简单,见下文:

public interface ILinkChecker
{
    /// <summary>
    /// Checks links in the website containing the supplied URL and returns a LinkCheckSummary instance detailing the results.
    /// </summary>
    /// <param name="url">The URL.</param>
    /// <returns>A LinkCheckSummary instance detailing the results of the check.</returns>
    LinkCheckSummary CheckLinks(string url);
}

我可以通过检查返回的 LinkCheckSummary 来确定是否有损坏的链接。目的。

我现在想将它集成到我们的 Cruise Control CI 管道中,这样如果 LinkChecker 检测到断开的链接,构建就会断开。

我该怎么做呢?

最佳答案

将其包裹在 NAnt task 中或 MSBuild task并将其作为构建的一部分执行。

关于cruisecontrol.net - 如何根据 .NET 代码的输出添加 Cruisecontrol.net 构建步骤,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7191580/

相关文章:

cruisecontrol.net - 巡航控制 - 仪表板上的项目列表太长 - 我们可以有文件夹吗?

.net - Nant fileset basedir 模式

nant - 有没有办法使用 .NET 4.5.1 进行 nant 构建?

c# - 错误 "MSB3176: Specified minimum required version is greater than the current publish version"

cruisecontrol.net - 如何让 xslReportBuildPlugin 在 CruiseControl.net 上工作

windows - 对于 CI,如何从 JSHint 的 NPM 版本中获取错误代码 (Windows)?

NAnt、sqlcmd.exe 和错误代码

nant - 如何使用 NANT 替换文件中的字符串?

.net - Windows Server 2008 上的 CruiseControl 1.6 问题

cruisecontrol.net - CruiseControl.NET 是否应该用于处理与构建源无关的任务?