Passing through extra arguments to msbuild for our powershell script.
This commit is contained in:
parent
3d44a2b189
commit
0a12e1e82b
1 changed files with 4 additions and 2 deletions
|
@ -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" }
|
||||
|
|
Loading…
Reference in a new issue