Skip to content

Commit d1dc248

Browse files
missing cases for net9 tests
1 parent 7e23dcb commit d1dc248

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Paket.Core/Versioning/FrameworkHandling.fs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,7 @@ module FrameworkDetection =
11021102
| Some "6" when dotnetVersionX = 6 -> tryParseSecondPart parts.[1]
11031103
| Some "7" when dotnetVersionX = 7 -> tryParseSecondPart parts.[1]
11041104
| Some "8" when dotnetVersionX = 8 -> tryParseSecondPart parts.[1]
1105+
| Some "9" when dotnetVersionX = 9 -> tryParseSecondPart parts.[1]
11051106
| _ -> None
11061107
else
11071108
None
@@ -1116,6 +1117,7 @@ module FrameworkDetection =
11161117
| Some "6" when dotnetVersionX = 6 -> tryParseVersion winVersionPart
11171118
| Some "7" when dotnetVersionX = 7 -> tryParseVersion winVersionPart
11181119
| Some "8" when dotnetVersionX = 8 -> tryParseVersion winVersionPart
1120+
| Some "9" when dotnetVersionX = 9 -> tryParseVersion winVersionPart
11191121
| _ -> None
11201122
else
11211123
None
@@ -1155,10 +1157,12 @@ module FrameworkDetection =
11551157
// http://nugettoolsdev.azurewebsites.net/4.0.0/parse-framework?framework=.NETPortable%2CVersion%3Dv0.0%2CProfile%3DProfile2
11561158
let result =
11571159
match path with
1160+
| MatchNetXDashWindows 9 Net9WindowsVersion.TryParse fm -> Some (DotNet9Windows fm)
11581161
| MatchNetXDashWindows 8 Net8WindowsVersion.TryParse fm -> Some (DotNet8Windows fm)
11591162
| MatchNetXDashWindows 7 Net7WindowsVersion.TryParse fm -> Some (DotNet7Windows fm)
11601163
| MatchNetXDashWindows 6 Net6WindowsVersion.TryParse fm -> Some (DotNet6Windows fm)
11611164
| MatchNetXDashWindows 5 Net5WindowsVersion.TryParse fm -> Some (DotNet5Windows fm)
1165+
| MatchNetXDashOs 9 Net9Os.TryParse fm -> Some (DotNet9WithOs fm)
11621166
| MatchNetXDashOs 8 Net8Os.TryParse fm -> Some (DotNet8WithOs fm)
11631167
| MatchNetXDashOs 7 Net7Os.TryParse fm -> Some (DotNet7WithOs fm)
11641168
| MatchNetXDashOs 6 Net6Os.TryParse fm -> Some (DotNet6WithOs fm)

0 commit comments

Comments
 (0)