Skip to content

Commit 43f24d6

Browse files
committed
We introduced picking one framework at random when specifying -one which canary does but it sometimes selects netstandard2.0 which for tests is not a configured framework updated
1 parent 193e79f commit 43f24d6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build/scripts/Projects.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ module Projects =
88
| NetStandard2_0
99
| Net461
1010
| NetCoreApp2_1
11-
static member All = [NetStandard2_0; Net461]
11+
static member All = [NetStandard2_0; Net461]
12+
static member AllTests = [NetCoreApp2_1; Net461]
1213
member this.Identifier =
1314
match this with
1415
| NetStandard2_0 -> { MSBuild = "netstandard2.0"; Nuget = "netstandard2.0"; DefineConstants = ""; }

build/scripts/Testing.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module Tests =
4343
| (_, true) -> ["--framework"; "netcoreapp2.1"] |> List.append p
4444
| (Commandline.MultiTarget.One, _) ->
4545
let random = new Random()
46-
let fw = DotNetFramework.All |> List.sortBy (fun _ -> random.Next()) |> List.head
46+
let fw = DotNetFramework.AllTests |> List.sortBy (fun _ -> random.Next()) |> List.head
4747
["--framework"; fw.Identifier.MSBuild] |> List.append p
4848
| _ -> p
4949
let commandWithCodeCoverage =

0 commit comments

Comments
 (0)