TeamCity:Nunit版本字符串部分太短或太长



我正在尝试使用TeamCity Build Server构建运行单元测试。我得到了我的项目来构建,还安装了Nunit。但是,当我尝试运行单元测试时,我会收到以下错误。

Starting: D:NtappsTeamCityBuildAgent2work5abc171d155702d0packagesNUnit.ConsoleRunner.3.6.0toolsnunit3-console.exe D:NtappsTeamCityBuildAgent2tempbuildTmpdppSJMLyACKKGB7l1dAWbvFo9bLR6TcR.nunit --result=D:NtappsTeamCityBuildAgent2tempbuildTmpdppSJMLyACKKGB7l1dAWbvFo9bLR6TcR.nunit.xml --noheader
in directory: D:NtappsTeamCityBuildAgent2work5abc171d155702d0AMDVAMDV.App.IntegrationTestsbinDebug
Runtime Environment
OS Version: Microsoft Windows NT 6.3.9600.0
CLR Version: 4.0.30319.42000
Test Files
D:NtappsTeamCityBuildAgent2tempbuildTmpdppSJMLyACKKGB7l1dAWbvFo9bLR6TcR.nunit
System.ArgumentException: Version string portion was too short or too long.
    at System.Version.VersionResult.SetFailure(ParseFailureKind failure, String argument)
    at System.Version.TryParseVersion(String version, VersionResult& result)
    at System.Version.Parse(String input)
    at System.Version..ctor(String version)
    at NUnit.Engine.Services.RuntimeFrameworkService.ApplyImageData(TestPackage package)
    at NUnit.Engine.Services.RuntimeFrameworkService.ApplyImageData(TestPackage package)
    at NUnit.Engine.Services.RuntimeFrameworkService.ApplyImageData(TestPackage package)
    at NUnit.Engine.Services.RuntimeFrameworkService.SelectRuntimeFramework(TestPackage package)
    at NUnit.Engine.Runners.MasterTestRunner.InitializePackage()
    at NUnit.Engine.TestEngine.GetRunner(TestPackage package)
    at NUnit.ConsoleRunner.ConsoleRunner.RunTests(TestPackage package, TestFilter filter)
    at NUnit.ConsoleRunner.Program.Main(String[] args)
Process exited with code -100
Publishing artifacts
Process exited with code -100
Step NUnit failed

我尝试搜索谷歌搜索,但这无济于事,我不知道在哪里看。

我遵循本教程进行设置。

我发现了问题。我不是在测试中使用Nunit,而是使用MSTest。我身边的durp:)

最新更新