From 471d9cda41754fde0db8ed63ac3ebbe651fd465e Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Wed, 3 Aug 2022 21:35:18 -0700 Subject: [PATCH] Remove unneeded verbose message in build (#17840) --- build.psm1 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build.psm1 b/build.psm1 index 7559659606..819a657361 100644 --- a/build.psm1 +++ b/build.psm1 @@ -862,10 +862,7 @@ function New-PSOptions { Write-Verbose "Using framework '$Framework'" if (-not $Runtime) { - $Info = dotnet --info - Write-Verbose "dotnet --info:`n${Info}" - - $Platform, $Architecture = $info | + $Platform, $Architecture = dotnet --info | Select-String '^\s*OS Platform:\s+(\w+)$', '^\s*Architecture:\s+(\w+)$' | Select-Object -First 2 | ForEach-Object { $_.Matches.Groups[1].Value }