Skip to content

Commit fea7709

Browse files
committed
Use native on netstandard2.1 and TaskOptionCE using resumable code
1 parent 906dab4 commit fea7709

File tree

11 files changed

+576
-6
lines changed

11 files changed

+576
-6
lines changed

src/FsToolkit.ErrorHandling.TaskResult/FsToolkit.ErrorHandling.TaskResult.fsproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
<PropertyGroup>
44
<OutputType>Library</OutputType>
55
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
6+
<!-- <TargetFrameworks>netstandard2.1</TargetFrameworks> -->
67
<DebugType>portable</DebugType>
8+
<LangVersion>preview</LangVersion>
9+
<NoWarn>FS3511;FS3513</NoWarn>
710
</PropertyGroup>
811

912

src/FsToolkit.ErrorHandling.TaskResult/List.fs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ namespace FsToolkit.ErrorHandling
22

33
open System.Threading.Tasks
44
open FsToolkit.ErrorHandling
5+
#if NETSTANDARD2_0
56
open FSharp.Control.Tasks.Affine
7+
#endif
68

79
[<RequireQualifiedAccess>]
810
module List =

src/FsToolkit.ErrorHandling.TaskResult/Result.fs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
namespace FsToolkit.ErrorHandling
22

33
open System.Threading.Tasks
4+
#if NETSTANDARD2_0
45
open FSharp.Control.Tasks.Affine
6+
#endif
57

68
module Result =
79

src/FsToolkit.ErrorHandling.TaskResult/Task.fs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
namespace FsToolkit.ErrorHandling
22

33
open System.Threading.Tasks
4+
5+
#if NETSTANDARD2_0
46
open FSharp.Control.Tasks.Affine
7+
#endif
58

69
[<RequireQualifiedAccess>]
710
module Task =

src/FsToolkit.ErrorHandling.TaskResult/TaskOption.fs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
namespace FsToolkit.ErrorHandling
22

33
open System.Threading.Tasks
4+
#if NETSTANDARD2_0
45
open FSharp.Control.Tasks.Affine
6+
#endif
57

68
[<RequireQualifiedAccess>]
79
module TaskOption =

0 commit comments

Comments
 (0)