Skip to content

Commit 53a8702

Browse files
committed
Port rolling forwards in build from AltCover to fix build break
1 parent 8190ad2 commit 53a8702

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Build/actions.fs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ do ()"""
208208
CreateProcess.fromRawCommand file args
209209
|> CreateProcess.withWorkingDirectory dir
210210
|> CreateProcess.withFramework
211+
|> CreateProcess.withEnvironment
212+
[ ("DOTNET_ROLL_FORWARD", "Major")
213+
("DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX", "2") ]
211214
|> Proc.run
212215
|> (AssertResult msg)
213216

Build/targets.fs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ module Targets =
4949
| Some f -> { o with DotNetCliPath = f }
5050
| None -> o
5151

52+
let dotnetOptionsWithRollForwards (o: DotNet.Options) =
53+
let env =
54+
o.Environment
55+
.Add("DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX", "2")
56+
.Add("DOTNET_ROLL_FORWARD", "Major")
57+
58+
o.WithEnvironment env
59+
5260
let nugetCache =
5361
Path.Combine(
5462
Environment.GetFolderPath Environment.SpecialFolder.UserProfile,

0 commit comments

Comments
 (0)