File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed
tests/Paket.Tests/DependenciesFile Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 1- #### 7.0.0-alpha002 - 2021-11-08
1+ #### 7.0.0-alpha003 - 2021-11-09
22* Support as .NET 6.0 tool
33
44#### 6.2.1 - 2021-10-13
Original file line number Diff line number Diff line change @@ -1198,6 +1198,35 @@ let ``should read config with target framework``() =
11981198 |> getExplicitRestriction
11991199 |> shouldEqual ( FrameworkRestriction.AtLeast( FrameworkIdentifier.DotNetFramework( FrameworkVersion.V4)))
12001200
1201+ let configNET5TargetFramework = """ source https://www.nuget.org/api/v2
1202+
1203+ framework: >= net5.0
1204+
1205+ nuget System.Data.SQLite 1.0.98.1 content: none
1206+ """
1207+
1208+ [<Test>]
1209+ let ``should read config with .NET 5 target framework`` () =
1210+ let cfg = DependenciesFile.FromSource( configNET5TargetFramework)
1211+
1212+ cfg.Groups.[ Constants.MainDependencyGroup]. Options.Settings.FrameworkRestrictions
1213+ |> getExplicitRestriction
1214+ |> shouldEqual ( FrameworkRestriction.AtLeast( FrameworkIdentifier.DotNetFramework( FrameworkVersion.V5)))
1215+
1216+ let configNET6TargetFramework = """ source https://www.nuget.org/api/v2
1217+
1218+ framework: >= net6.0
1219+
1220+ nuget System.Data.SQLite 1.0.98.1 content: none
1221+ """
1222+
1223+ [<Test>]
1224+ let ``should read config with .NET 6 target framework`` () =
1225+ let cfg = DependenciesFile.FromSource( configNET6TargetFramework)
1226+
1227+ cfg.Groups.[ Constants.MainDependencyGroup]. Options.Settings.FrameworkRestrictions
1228+ |> getExplicitRestriction
1229+ |> shouldEqual ( FrameworkRestriction.AtLeast( FrameworkIdentifier.DotNetFramework( FrameworkVersion.V6)))
12011230
12021231let validFrameworks =
12031232 let net40 = DotNetFramework( FrameworkVersion.V4)
You can’t perform that action at this time.
0 commit comments