File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,10 @@ if (Get-Command git -ErrorAction SilentlyContinue) {
5555
5656task FindDotNet {
5757 assert (Get-Command dotnet - ErrorAction SilentlyContinue) " dotnet not found, please install it: https://aka.ms/dotnet-cli"
58- assert ([Version ](dotnet -- version) -ge [Version ](" 6.0" )) " .NET SDK 6.0 or higher is required, please update it: https://aka.ms/dotnet-cli"
58+
59+ # Strip out semantic version metadata so it can be cast to `Version`
60+ $existingVersion , $null = (dotnet -- version) -split ' -'
61+ assert ([Version ]$existingVersion -ge [Version ](" 6.0" )) " .NET SDK 6.0 or higher is required, please update it: https://aka.ms/dotnet-cli"
5962
6063 # Anywhere other than on a Mac with an M1 processor, we additionally
6164 # need the .NET 3.1 runtime for our netcoreapp3.1 framework.
You can’t perform that action at this time.
0 commit comments