我正在尝试在包含XUnit测试步骤的.NET核心的tfs上设置构建定义。一切正常,直到我的测试通过,然后出于某种原因,构建失败后立即。成功测试运行后TFS构建失败
Total tests: 2. Passed: 2. Failed: 0. Skipped: 0.
Test Run Successful.
Test execution time: 3.3499 Seconds
Error: d:\a\_tool\dncs\2.0.0\x64\dotnet.exe failed with return code: 1
Dotnet command failed with non-zero exit code on the following projects :
就是这样,没有其他细节。我很困惑从哪里开始,测试步骤目前是构建定义中的最后一步。
编辑
这是通过设置调试获得详细输出=真正
2017-10-19T09:50:00.4882598Z ##[debug]rc:1
2017-10-19T09:50:00.4902607Z ##[debug]success:false
2017-10-19T09:50:00.5002614Z ##[error]Error:
d:\a\_tool\dncs\2.0.0\x64\dotnet.exe failed with return code: 1
2017-10-19T09:50:00.5002614Z ##[debug]Processed: ##vso[task.issue
type=error;]Error: d:\a\_tool\dncs\2.0.0\x64\dotnet.exe failed with return
code: 1
2017-10-19T09:50:00.5022599Z ##[debug]task result: Failed
2017-10-19T09:50:00.5032599Z ##[error]Dotnet command failed with non-zero
exit code on the following projects :
2017-10-19T09:50:00.5032599Z ##[debug]Processed: ##vso[task.issue
type=error;]Dotnet command failed with non-zero exit code on the following
projects :
2017-10-19T09:50:00.5042604Z ##[debug]Processed: ##vso[task.complete
result=Failed;]Dotnet command failed with non-zero exit code on the
following projects :
能否请你设置'调试=真',然后拿到这里分享日志排除故障? –
我这样做了,但不幸的是,详细的输出是无用的,我会在这里为你更新它。 – nagrom97