2019-10-11 10:33:21 +00:00
|
|
|
[CmdletBinding()]
|
|
|
|
Param(
|
|
|
|
[string]$Target,
|
|
|
|
[string]$Configuration,
|
|
|
|
[ValidateSet("Quiet", "Minimal", "Normal", "Verbose", "Diagnostic")]
|
|
|
|
[string]$Verbosity,
|
|
|
|
[switch]$ShowDescription,
|
|
|
|
[Alias("WhatIf", "Noop")]
|
|
|
|
[switch]$DryRun,
|
|
|
|
[Parameter(Position = 0, Mandatory = $false, ValueFromRemainingArguments = $true)]
|
|
|
|
[string[]]$ScriptArgs
|
|
|
|
)
|
|
|
|
|
|
|
|
# Build Cake arguments
|
|
|
|
$cakeArguments = "";
|
|
|
|
if ($Target) { $cakeArguments += "-target=$Target" }
|
|
|
|
if ($Configuration) { $cakeArguments += "-configuration=$Configuration" }
|
|
|
|
if ($Verbosity) { $cakeArguments += "-verbosity=$Verbosity" }
|
|
|
|
if ($ShowDescription) { $cakeArguments += "-showdescription" }
|
|
|
|
if ($DryRun) { $cakeArguments += "-dryrun" }
|
|
|
|
if ($Experimental) { $cakeArguments += "-experimental" }
|
|
|
|
$cakeArguments += $ScriptArgs
|
|
|
|
|
2019-10-30 14:42:25 +00:00
|
|
|
dotnet tool restore
|
2019-10-10 08:48:56 +00:00
|
|
|
dotnet cake ./build/build.cake --bootstrap
|
2019-10-11 10:33:21 +00:00
|
|
|
dotnet cake ./build/build.cake $cakeArguments
|
2019-10-10 08:48:56 +00:00
|
|
|
exit $LASTEXITCODE
|