Skip to content

Commit f85f267

Browse files
committed
Bump version to 7.0.0-alpha003
1 parent c688f4c commit f85f267

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

tests/Paket.Tests/DependenciesFile/ParserSpecs.fs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff 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

12021231
let validFrameworks =
12031232
let net40 = DotNetFramework(FrameworkVersion.V4)

0 commit comments

Comments
 (0)