From de0c8d21f40d25df3d3e48223d526d170820f3d4 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Tue, 10 Sep 2024 13:47:23 -0700 Subject: [PATCH] Do not build the exe for Global tool shim project (#24263) --- build.psm1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.psm1 b/build.psm1 index 1042243be..2d0383677 100644 --- a/build.psm1 +++ b/build.psm1 @@ -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 }