【发布时间】:2015-10-02 18:21:14
【问题描述】:
我有一个包含大量项目的解决方案,其中一些还有测试项目。这些都是为Any CPU平台编译的。
在 TeamCity 中,我有一个 NUnit 2.6.4 的构建配置,我在上面指定了 Platform: auto (MSIL) 和 Version: 4.0。
当我运行构建时,测试失败并显示以下消息:
NUnit error running tests in 'C:\BuildAgent\work\a58fc6cd9bf63032\JsonApi.Tests\obj\Release\JsonApi.Tests.dll' assembly
Loading assembly is compiled for v4.0.30319, MSIL
NUnit runner runtime is v4.0.30319, x64
更奇怪的是,当我刚刚关闭“首先运行最近失败的测试”(并更改其他内容)时,我得到了以下内容:
NUnit error running tests in 'C:\BuildAgent\work\a58fc6cd9bf63032\JsonApi.Owin.Tests\obj\Release\JsonApi.Owin.Tests.dll' assembly
Loading assembly is compiled for v4.0.30319, MSIL
NUnit runner runtime is v4.0.30319, x86
请注意,在一种情况下,跑步者是 x86,而在另一种情况下是 x64。在这两种情况下,它们都没有成功加载为 MSIL 编译的程序集。
我假设我的构建设置有问题,但是什么?
【问题讨论】:
-
@MichalHosala:感谢您查看此内容。不,只安装了一个构建代理。如果您想查看,我将失败的确切日志输出(包括以下几行)复制到 a gist。
标签: nunit teamcity assembly-loading