From f62dd4bf54020d3da05f8e6825d624ceaa2a69b6 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Mon, 3 Oct 2016 11:04:40 -0700 Subject: [PATCH] Allow Start-PSBuild -Output to take absolute path (#2398) There was no point to using Join-Path here, but it made it impossible to specify absolute paths (or any path outside of the PowerShell repo). --- build.psm1 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build.psm1 b/build.psm1 index b9da79a44f..d5746acf0c 100644 --- a/build.psm1 +++ b/build.psm1 @@ -197,7 +197,7 @@ function Start-PSBuild { $Arguments += "build" } if ($Output) { - $Arguments += "--output", (Join-Path $PSScriptRoot $Output) + $Arguments += "--output", $Output } elseif ($SMAOnly) { $Arguments += "--output", (Split-Path $script:Options.Output) @@ -490,9 +490,7 @@ function New-PSOptions { } # Build the Output path - if ($Output) { - $Output = Join-Path $PSScriptRoot $Output - } else { + if (!$Output) { $Output = [IO.Path]::Combine($Top, "bin", $Configuration, $Framework, $Runtime) # Publish injects the publish directory