Skip to content

Commit 6e3f228

Browse files
committed
making the build script work with latest msbuild bits
1 parent cbe8fe3 commit 6e3f228

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

BuildAndPack.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,14 @@ $defaultArgs = "/v:n", "/nologo",
3333
"/p:SolutionDir=$solutionDir",
3434
"/p:RepositoryCommit=$GitCommitId"
3535
"/p:Version=$version",
36-
"/t:Restore,Build,Pack",
3736
"/p:Configuration=Release",
3837
"/p:SEPrecompilerPath=$solutionDir\StackExchange.Precompilation.Build\bin\Release\net462"
3938
if ($MsBuildArgs)
4039
{
4140
$defaultArgs += $MsBuildArgs
4241
}
43-
44-
& msbuild $defaultArgs
42+
& msbuild ($defaultArgs + "/t:Restore")
43+
& msbuild ($defaultArgs + "/t:Build,Pack")
4544

4645
if ($LastExitCode -ne 0)
4746
{

0 commit comments

Comments
 (0)