We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
FindDotNet
1 parent ce538d7 commit 2bfc469Copy full SHA for 2bfc469
PowerShellEditorServices.build.ps1
@@ -70,8 +70,8 @@ Task FindDotNet {
70
Assert (Get-Command dotnet -ErrorAction SilentlyContinue) "dotnet not found, please install it: https://aka.ms/dotnet-cli"
71
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"
+ [Version]$existingVersion, $null = (dotnet --version) -split " " -split "-"
+ Assert ($existingVersion -ge [Version]("8.0")) ".NET SDK 8.0 or higher is required, please update it: https://aka.ms/dotnet-cli"
75
76
Write-Host "Using dotnet v$(dotnet --version) at path $((Get-Command dotnet).Source)" -ForegroundColor Green
77
}
0 commit comments