tag:help.appveyor.com,2012-11-13:/discussions/problems/4152-build-completed-but-showed-as-failed-with-red-line-indicating-command-exited-with-code-1AppVeyor: Discussion 2018-08-25T02:04:03Ztag:help.appveyor.com,2012-11-13:Comment/391656602016-02-14T21:05:10Z2016-02-14T21:05:10ZBuild completed but showed as failed (with red line indicating "Command exited with code 1")<div><p>Hi Lida,</p>
<p>First, enable at least "Normal" verbosity for msbuild (Build
tab), so you can see detailed errors in build log.</p>
<p>Second, you can add RDP on build failure, login to build worker,
open your project in IDE and debug. Add this "PS" script into "On
build failure" section of your project settings:</p>
<pre>
<code>$blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))</code>
</pre></div>Feodor Fitsner