我正在嘗試在包含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