File tree 1 file changed +4
-1
lines changed
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) {
55
55
56
56
task FindDotNet {
57
57
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"
59
62
60
63
# Anywhere other than on a Mac with an M1 processor, we additionally
61
64
# need the .NET 3.1 runtime for our netcoreapp3.1 framework.
You can’t perform that action at this time.
0 commit comments