question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DotNetCoreInstaller@1` task failed with non-zero exit code when switch to 1

See original GitHub issue

From @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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
AArnottcommented, May 22, 2019

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.

0reactions
wli3commented, May 22, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found