From 67f91702c2699fd4c30dd47878e743488d51f70c Mon Sep 17 00:00:00 2001 From: Andrew Arnott Date: Tue, 26 Oct 2021 07:31:09 -0600 Subject: [PATCH] Search for .NET 5+ runtime requirements --- tools/Install-DotNetSdk.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Install-DotNetSdk.ps1 b/tools/Install-DotNetSdk.ps1 index 83ddec87..3c80d5bb 100755 --- a/tools/Install-DotNetSdk.ps1 +++ b/tools/Install-DotNetSdk.ps1 @@ -40,7 +40,7 @@ Get-ChildItem "$PSScriptRoot\..\src\*.*proj","$PSScriptRoot\..\test\*.*proj","$P $targetFrameworks = $targetFrameworks -Split ';' } } - $targetFrameworks |? { $_ -match 'netcoreapp(\d+\.\d+)' } |% { + $targetFrameworks |? { $_ -match 'net(?:coreapp)?(\d+\.\d+)' } |% { $runtimeVersions += $Matches[1] } }