File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ Task FindDotNet {
70
70
Assert (Get-Command dotnet - ErrorAction SilentlyContinue) " dotnet not found, please install it: https://aka.ms/dotnet-cli"
71
71
72
72
# Strip out semantic version metadata so it can be cast to `Version`
73
- $existingVersion , $null = (dotnet -- version) -split ' - '
74
- Assert ([ Version ] $existingVersion -ge [Version ](" 6 .0" )) " .NET SDK 6 .0 or higher is required, please update it: https://aka.ms/dotnet-cli"
73
+ [ Version ] $existingVersion , $null = (dotnet -- version) -split " " -split " - "
74
+ Assert ($existingVersion -ge [Version ](" 8 .0" )) " .NET SDK 8 .0 or higher is required, please update it: https://aka.ms/dotnet-cli"
75
75
76
76
Write-Host " Using dotnet v$ ( dotnet -- version) at path $ ( (Get-Command dotnet).Source) " - ForegroundColor Green
77
77
}
You can’t perform that action at this time.
0 commit comments