From 4134330fd290d1416fa3ec49d234246e1a9a76cb Mon Sep 17 00:00:00 2001 From: Steven Cohn Date: Tue, 18 Jan 2022 07:51:50 -0500 Subject: [PATCH] repair build.ps1 --- build.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.ps1 b/build.ps1 index b9ac780e70..339dac45fb 100644 --- a/build.ps1 +++ b/build.ps1 @@ -25,9 +25,10 @@ Begin function FindVisualStudio { - if ((Get-Command devenv) -ne $null) + $cmd = Get-Command devenv -ErrorAction:SilentlyContinue + if ($cmd -ne $null) { - $script:devenv = (Get-Command devenv).Source + $script:devenv = $cmd.Source return $true }