Skip to content

Commit 48c83e2

Browse files
committed
fixing build script, actually run the console test app
1 parent 19c0d5a commit 48c83e2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

BuildAndPack.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if(-not $GitCommitId)
3131
$solutionDir = "$((Resolve-Path .).Path)\"
3232
$defaultArgs = "/v:n", "/nologo",
3333
"/p:SolutionDir=$solutionDir",
34-
"/p:RepositoryCommit=$GitCommitId"
34+
"/p:RepositoryCommit=$GitCommitId",
3535
"/p:Version=$version",
3636
"/p:Configuration=Release",
3737
"/p:SEPrecompilerPath=$solutionDir\StackExchange.Precompilation.Build\bin\Release\net462"
@@ -45,4 +45,11 @@ if ($MsBuildArgs)
4545
if ($LastExitCode -ne 0)
4646
{
4747
throw "MSBuild failed"
48-
}
48+
}
49+
50+
.\Test.ConsoleApp\bin\Release\net462\Test.ConsoleApp.exe
51+
52+
if ($LastExitCode -ne 0)
53+
{
54+
throw "Test.ConsoleApp failed to run"
55+
}

0 commit comments

Comments
 (0)