Skip to content

Commit 49a5651

Browse files
committed
Specific target of Sample and exit on error
1 parent 9543441 commit 49a5651

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Build.ps1

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
$ErrorActionPreference = "Stop"
12
echo "build: Build started"
23

34
Push-Location $PSScriptRoot
@@ -41,15 +42,6 @@ foreach ($test in ls test/*.Tests) {
4142
Pop-Location
4243
}
4344

44-
foreach ($test in ls sample/Sample) {
45-
Push-Location $test
46-
47-
echo "build: Building performance test project in $test"
48-
49-
& dotnet build -c Release
50-
if($LASTEXITCODE -ne 0) { exit 2 }
51-
52-
Pop-Location
53-
}
45+
dotnet build -c Release .\sample\Sample\Sample.csproj
5446

5547
Pop-Location

0 commit comments

Comments
 (0)