diff --git a/src/FSharp/AssemblyInfo.fs b/src/FSharp/AssemblyInfo.fs index 7ce36f42..d7ee10ce 100644 --- a/src/FSharp/AssemblyInfo.fs +++ b/src/FSharp/AssemblyInfo.fs @@ -48,7 +48,7 @@ open System.Runtime.InteropServices [] [] -#if PORTABLE +#if PORTABLE || NETSTANDARD #else [] [] diff --git a/src/FSharp/BigIntegerExtensions.fs b/src/FSharp/BigIntegerExtensions.fs index e3aff48d..70a04705 100644 --- a/src/FSharp/BigIntegerExtensions.fs +++ b/src/FSharp/BigIntegerExtensions.fs @@ -1,6 +1,6 @@ namespace System.Numerics -#if PORTABLE +#if PORTABLE || NETSTANDARD #if NOSYSNUMERICS #else diff --git a/src/FSharp/FSharp-2017.fsproj b/src/FSharp/FSharp-2017.fsproj index be8ebcb6..1d6a1ff0 100644 --- a/src/FSharp/FSharp-2017.fsproj +++ b/src/FSharp/FSharp-2017.fsproj @@ -1,8 +1,6 @@ - + - - - net45 + net45;netstandard1.6 true MathNet.Numerics.FSharp MathNet.Numerics @@ -11,10 +9,28 @@ false + + NETSTANDARD;NOSYSNUMERICS + + + + true + full + false + false + bin\Debug\ + + + pdbonly + true + true + bin\Release\ + + - - + + diff --git a/src/FSharp/Random.fs b/src/FSharp/Random.fs index d26dc70d..ebd5a6c4 100644 --- a/src/FSharp/Random.fs +++ b/src/FSharp/Random.fs @@ -49,7 +49,7 @@ module Random = let inline system () = SystemRandomSource() :> System.Random let inline systemSeed (seed:int) = SystemRandomSource(seed) :> System.Random -#if PORTABLE +#if PORTABLE || NETSTANDARD #else /// Creates a default .Net cryptographic system pRNG let inline crypto () = new CryptoRandomSource() :> System.Random