Passing through extra arguments to msbuild for our powershell script.

This commit is contained in:
Livar Cunha 2016-07-08 11:54:30 -07:00
parent 3d44a2b189
commit 0a12e1e82b

View file

@ -7,7 +7,9 @@ param(
[string]$Configuration="Debug",
[string]$Architecture="x64",
[switch]$NoPackage,
[switch]$Help)
[switch]$Help,
[Parameter(Position=0, ValueFromRemainingArguments=$true)]
$ExtraParameters)
if($Help)
{
@ -62,5 +64,5 @@ $env:PATH = "$env:DOTNET_INSTALL_DIR;$env:PATH"
# Disable first run since we want to control all package sources
$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
dotnet build3 build.proj /p:Architecture=$Architecture
dotnet build3 build.proj /p:Architecture=$Architecture $ExtraParameters
if($LASTEXITCODE -ne 0) { throw "Failed to build" }