version: 1.0.{build}
image: Visual Studio 2015
environment:
  DeployExtension: false
build_script:
- ps: >-
    $failed = @()

    Get-ChildItem *.sln -rec |% {
        Write-Output "Restoring packages for $($_.Name)"
        nuget restore $_ -Verbosity quiet
        if ($LASTEXITCODE -ne 0) {
            $failed += $_
        } else {
            Write-Output "Building $($_.Name)"
            msbuild $_ /nologo /m /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
            if ($LASTEXITCODE -ne 0) {
                $failed += $_
            }
        }
    }

    exit $failed.length

version: 1.0.{build}
image: Visual Studio 2015
environment:
  DeployExtension: false
build_script:
- ps: >-
    $failed = @()

    Get-ChildItem *.sln -rec |% {
        Write-Output "Restoring packages for $($_.Name)"
        nuget restore $_ -Verbosity quiet
        if ($LASTEXITCODE -ne 0) {
            $failed += $_
        } else {
            Write-Output "Building $($_.Name)"
            msbuild $_ /nologo /m /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
            if ($LASTEXITCODE -ne 0) {
                $failed += $_
            }
        }
    }

    if ($failed.length -gt 0) {
        exit $failed.length
    }

Fix build break that is mis-reported in AppVeyor
Fix build break that is mis-reported in AppVeyor
