From 0a12e1e82b29403db838962c6b45c11c593af1c7 Mon Sep 17 00:00:00 2001 From: Livar Cunha Date: Fri, 8 Jul 2016 11:54:30 -0700 Subject: [PATCH] Passing through extra arguments to msbuild for our powershell script. --- run-build.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/run-build.ps1 b/run-build.ps1 index c64bf991d..74f48ccbd 100644 --- a/run-build.ps1 +++ b/run-build.ps1 @@ -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" }