DotNetCoreInstaller@1` task failed with non-zero exit code when switch to 1
See original GitHub issueFrom @AArnott
Actually, my PR to switch to use UseDotNet@2
can’t complete because 3 PR builds in a row have failed in the dotnet test
step. All tests pass, but dotnet.exe
returns a nonzero exit code.
Total tests: 246. Passed: 246. Failed: 0. Skipped: 0.
Test Run Successful.
Test execution time: 10.1186 Seconds
1>Done Building Project "d:\a\1\s\src\StreamJsonRpc.Tests\StreamJsonRpc.Tests.csproj" (VSTest target(s)) -- FAILED.
Build FAILED.
0 Warning(s)
0 Error(s)
Time Elapsed 00:02:22.63
##[error]Error: The process 'C:\hostedtoolcache\windows\dotnet\dotnet.exe' failed with exit code 1
##[warning]Invalid results file. Make sure the result format of the file 'd:\a\_temp\VssAdministrator_fv-az48_2019-05-22_04_51_17.trx' matches 'VSTest' test results format.
##[error]Dotnet command failed with non-zero exit code on the following projects : d:\a\1\s\src\StreamJsonRpc.Tests\StreamJsonRpc.Tests.csproj
As you can see it also emits a warning about the .trx file. None of this happens when I use the DotNetCoreInstaller@0
task. I wonder why in the world switching installer tasks would cause this problem.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
DotNetCoreInstaller@1` task failed with non-zero exit code ...
None of this happens when I use the DotNetCoreInstaller@0 task. I wonder why in the world switching installer tasks would cause this problem....
Read more >Build fails with "Command failed with a nonzero exit code"
In my Cordova config.xml file the deployed-target was set to 11.0 - but after upgrading to Xcode 13.1 it recommend a bunch of...
Read more >Error: Failed with Exit Code 1
I did Option - Command - Shift - K, which led to another Error: Command CodeSign failed with a nonzero exit code. I...
Read more >Getting Non Zero Exitcode in Support Task While Ru...
Getting Non Zero Exitcode in Support Task While Running .bat file through CMD line ,can anybody help ?Its very Urgent. Error: The process...
Read more >I'm getting CodeSign failed with a nonzero exit code in Xcode
Seems that the issue is related to access your Apple Developer Certificate. Solved by deleting my previous Certificate and creating a new one....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Awesome. Yes, I remember the task on OSX couldn’t accumulate, which really limited what I could do. I see in my Windows box at least that accumulation works. So I can complete my PR and we can close this issue. Thanks for your help.
It used to install different SDK versions in different location, so it cannot accumulate . And there was an bug for that. Looks like the install location is "C:\hostedtoolcache\windows\dotnet" without extra subfolder. It should be fixed