Conditionally add output argument

This commit is contained in:
Aditya Patwardhan 2022-02-07 16:46:29 -08:00
parent b124d1815d
commit b29d5dc8db

View File

@ -554,7 +554,9 @@ Fix steps:
try {
Push-Location $globalToolSrcFolder
$Arguments += "--output", $publishPath
if ($Arguments -notcontains '--output') {
$Arguments += "--output", $publishPath
}
Write-Log -message "Run dotnet $Arguments from $PWD to build global tool entry point"
Start-NativeExecution { dotnet $Arguments }
}