ASP.NET 5测试团队城市xunit.runner.dnx

时间:2015-11-26 01:11:53

标签: asp.net teamcity xunit dnx

我在TeamCity中使用ASP.NET 5和dnx。我有一个单元测试项目,它使用一个使用xunit.runner.dnx的Powershell脚本运行

在Visual Studio和Powershell中一切正常,但是当我将它移动到团队城市时,我在尝试运行测试时会遇到错误。

这是错误......

System.NullReferenceException: Object reference not set to an instance of an object.
at Xunit.Runner.Dnx.Program..ctor(IServiceProvider services)

错误不是很有帮助。

还有其他人经历过这个吗?

1 个答案:

答案 0 :(得分:1)

这是因为xUnit的版本与dnx的版本不匹配。如果您移动到ASP.NET 5 RC1,则需要移至xUnit的RC1版本。

相关问题