tag:help.appveyor.com,2012-11-13:/discussions/problems/5363-build-fails-with-command-exited-with-code-without-obvious-errors-and-result-codesAppVeyor: Discussion 2018-10-19T08:18:03Ztag:help.appveyor.com,2012-11-13:Comment/408851822016-10-04T00:38:45Z2016-10-04T00:39:14ZBuild fails with "Command exited with code" without obvious errors and result codes<div><p>Hello,</p>
<p>Apparently at least some of code paths (including happy path) in
this script ends with <code>exit 0</code>. Which kills PowerShell
session in which script was called.</p>
<p>We will fix appveyor to tolerate this, here is the issue created
- <a href="https://github.com/appveyor/ci/issues/1090">https://github.com/appveyor/ci/issues/1090</a></p>
<p>As a workaround you can call it this way:</p>
<p><code>- cmd: PowerShell.exe iex ((new-object
net.webclient).DownloadString('https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.ps1'))</code></p>
<p>Also I want to let you know that latest .NET Core is installed
on build VMs <a href="https://www.appveyor.com/docs/installed-software/">https://www.appveyor.com/docs/installed-software/</a>,
and maybe you can avoid this step at all. If you have some specific
reasons to install it yourself -- use, as I said, workaround from
above.</p>
<p>--ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/408851822016-10-04T01:12:25Z2016-10-04T01:12:25ZBuild fails with "Command exited with code" without obvious errors and result codes<div><p>Thank you for helping out Ilya!</p>
<p>I will try to avoid manual tools installation in this scenario
then. It may resolve my issue and also make *.yml simpler.</p></div>soloydenkotag:help.appveyor.com,2012-11-13:Comment/408851822016-10-06T03:42:32Z2016-10-06T03:42:32ZBuild fails with "Command exited with code" without obvious errors and result codes<div><p>I am closing the issue since preinstalled dotnet cli worked for
me. Thank you again for looking into it Ilya!</p></div>soloydenko