From 5492df6cb4926c2d46603518cc01ff41597981c2 Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Mon, 10 Aug 2020 09:06:04 -0700 Subject: [PATCH] Fix `dotnet` install errors (#13387) --- build.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.psm1 b/build.psm1 index a32fd942e..59b6d82d7 100644 --- a/build.psm1 +++ b/build.psm1 @@ -2051,7 +2051,7 @@ function Find-Dotnet() { if (precheck dotnet) { # Must run from within repo to ensure global.json can specify the required SDK version Push-Location $PSScriptRoot - $dotnetCLIInstalledVersion = Start-NativeExecution -sb { dotnet --version } -IgnoreExitcode + $dotnetCLIInstalledVersion = Start-NativeExecution -sb { dotnet --version } -IgnoreExitcode 2> $null Pop-Location if ($dotnetCLIInstalledVersion -ne $dotnetCLIRequiredVersion) { Write-Warning "The 'dotnet' in the current path can't find SDK version ${dotnetCLIRequiredVersion}, prepending $dotnetPath to PATH."