解决TeamCity上的程序集依赖关系链问题

时间:2014-08-05 14:58:47

标签: c# testing dependencies continuous-integration teamcity

我们有一个.NET解决方案,我正试图在新的CI环境TeamCity中运行。

解决方案构建并运行,所有单元测试都在我们的开发机器上运行(并非所有通过,但这是一个不同的故事)。

它也可以在CI服务器上正确构建,但在运行MSTest配置时,它会失败,并显示如下消息:

Unable to load the test container '[one of my test assemblies]' or one of its dependencies.  Error details: System.IO.FileNotFoundException: Could not load file or assembly '[one of my assemblies]' or one of its dependencies. The system cannot find the file specified.

嗯,我的装配是建造和可用的,所以这不太可能。在我的本地开发机器上,我可以通过procmon等获取更多详细信息,以查看依赖链断开的位置,但我不确定如何对远程服务器执行此操作。

如何找到我的CI服务器缺少的工作?我可以启用一些日志记录吗?

1 个答案:

答案 0 :(得分:0)

当您尝试运行测试时,听起来工作目录是错误的。

您的构建和单元测试是否采用相同的“构建配置”?