build.ps1 returns a non-zero exit code if build fails