CruiseControl.NET 尝试构建 NUnit 测试项目时显示类型或命名空间错误

CruiseControl.NET showing type or namespace error when trying to build NUnit test project

我正在尝试 CC.net 构建和 运行 我的 NUnit 测试(CC.NET 在单独的机器上)。

然而,当它到达 MyProject.Tests.csprog 时,它会退出,但例外情况是:

The type or namespace 'NUnit' could not be found (are you missing a using directive or an assembly reference?)

在我的本地机器上 Visual Studio 测试构建和 运行 完美无缺。

如何解决此构建错误?

我在 CC.NET 机器上安装了 NUnit。我也阅读了一些 CC.net/NUnit 说明,但它们都提到了包括 MyProject.Tests.dll,但是这个 DLL 没有生成(构建失败并出现上述错误)。

有什么想法吗?

问题是我的 <buildArgs> 元素中没有 ReferencePath

<buildArgs>/noconsolelogger 
    /v:quiet 
    ...snip...
    /p:ReferencePath="C:\Program Files (x86)\NUnit 2.6.4\bin\framework"
</buildArgs>

非常感谢 Matteo 的博客 post https://ilmatte.wordpress.com/category/cruisecontrolnet/