Skip to content

Commit

Permalink
Do not build the exe for Global tool shim project (PowerShell#24263)
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapatwardhan committed Sep 19, 2024
1 parent e00157e commit c1d6e4a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,13 @@ Fix steps:

try {
Push-Location $globalToolSrcFolder

if ($Options.Runtime -like 'fxdependent*') {
if ($Arguments -contains '/property:UseAppHost=true') {
$Arguments = @($Arguments | Where-Object { $_ -notlike '/property:UseAppHost=true' })
}
}

if ($Arguments -notcontains '--output') {
$Arguments += "--output", $publishPath
}
Expand Down

0 comments on commit c1d6e4a

Please sign in to comment.