From 7d9046ea05215bbc15acb6918c5ae508a8570443 Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Fri, 17 Jun 2016 07:51:32 -0700 Subject: [PATCH] Fix wrong heuristic to start ResGen --- build.psm1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.psm1 b/build.psm1 index 2a109da28e..d5af6b1d35 100644 --- a/build.psm1 +++ b/build.psm1 @@ -145,7 +145,8 @@ function Start-PSBuild { } # handle ResGen - if ($ResGen -or -not (Test-Path "$($Options.Top)/gen")) + # Heuristic to run ResGen on the fresh machine + if ($ResGen -or -not (Test-Path "$PSScriptRoot/src/Microsoft.PowerShell.ConsoleHost/gen")) { log "Run ResGen (generating C# bindings for resx files)" Start-ResGen