Skip to content

Commit

Permalink
fixing build script, actually run the console test app
Browse files Browse the repository at this point in the history
  • Loading branch information
m0sa committed May 8, 2018
1 parent 19c0d5a commit 48c83e2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions BuildAndPack.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if(-not $GitCommitId)
$solutionDir = "$((Resolve-Path .).Path)\"
$defaultArgs = "/v:n", "/nologo",
"/p:SolutionDir=$solutionDir",
"/p:RepositoryCommit=$GitCommitId"
"/p:RepositoryCommit=$GitCommitId",
"/p:Version=$version",
"/p:Configuration=Release",
"/p:SEPrecompilerPath=$solutionDir\StackExchange.Precompilation.Build\bin\Release\net462"
Expand All @@ -45,4 +45,11 @@ if ($MsBuildArgs)
if ($LastExitCode -ne 0)
{
throw "MSBuild failed"
}
}

.\Test.ConsoleApp\bin\Release\net462\Test.ConsoleApp.exe

if ($LastExitCode -ne 0)
{
throw "Test.ConsoleApp failed to run"
}

0 comments on commit 48c83e2

Please sign in to comment.