File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
Push-Location $PSScriptRoot
2
2
. .\Settings.ps1
3
3
4
+ $anyError = $False
5
+
4
6
ForEach ($p in $client_projects ) {
5
7
ForEach ($b in $client_build_configurations ) {
6
8
$isPclClient = ($ ($p.Name ) -eq " Exceptionless.Portable" ) -or ($ ($p.Name ) -eq " Exceptionless.Portable.Signed" )
@@ -49,6 +51,9 @@ ForEach ($p in $client_projects) {
49
51
/ p:TargetFrameworkVersionProperty= " $ ( $b.TargetFrameworkVersionProperty ) " `
50
52
/ t:" Rebuild"
51
53
}
54
+ If (-not $? ) {
55
+ $anyError = $True
56
+ }
52
57
53
58
Write-Host " Finished building $ ( $p.Name ) ($ ( $b.TargetFrameworkVersionProperty ) )" - ForegroundColor Yellow
54
59
}
@@ -66,7 +71,13 @@ msbuild "$source_dir\Tests\Exceptionless.Tests.csproj" `
66
71
/ p:TargetFrameworkVersionProperty= " NET40" `
67
72
/ p:TargetFrameworkProfile= " " `
68
73
/ p:TargetPortable= " false"
69
-
74
+ If (-not $? ) {
75
+ $anyError = $True
76
+ }
70
77
Write-Host " Finished building Client Tests" - ForegroundColor Yellow
71
78
72
- Pop-Location
79
+ Pop-Location
80
+
81
+ If ($anyError ) {
82
+ exit 1
83
+ }
You can’t perform that action at this time.
0 commit comments