Fix wrong heuristic to start ResGen

This commit is contained in:
Sergei Vorobev 2016-06-17 07:51:32 -07:00
parent 838ad202fa
commit 7d9046ea05

View file

@ -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