From a4856e997684f84476fe92e00afcd4da76a69b04 Mon Sep 17 00:00:00 2001 From: Markus Lindqvist Date: Mon, 6 Mar 2023 21:52:59 +0200 Subject: [PATCH] fix(core): Fix dotnet version check to allow .NET 7.0 (#24467) Fix dotnet version check to allow .NET 7.0 Closes #24466. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- scripts/check-build-prerequisites.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check-build-prerequisites.sh b/scripts/check-build-prerequisites.sh index 93f9606e7c52e..49d6feef733be 100755 --- a/scripts/check-build-prerequisites.sh +++ b/scripts/check-build-prerequisites.sh @@ -127,7 +127,7 @@ app_min="6.0.100" check_which $app $app_min app_v=$(${app} --list-sdks) echo -e "Checking dotnet version... \c" -if [ $(echo $app_v | grep -c -E "6\.[0-9]+\.[0-9]+") -eq 1 ] +if [ $(echo $app_v | grep -c -E "[67]\.[0-9]+\.[0-9]+") -eq 1 ] then echo "Ok" else