Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit be78be4

Browse files
committed
Use netcoreapp3.1 in tests as well
1 parent bc5acd8 commit be78be4

File tree

3 files changed

+86
-86
lines changed

3 files changed

+86
-86
lines changed

tests/FSharp.Test.Utilities/Utilities.fs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module Utilities =
1717
[<RequireQualifiedAccess>]
1818
type TargetFramework =
1919
| NetStandard20
20-
| NetCoreApp30
20+
| NetCoreApp31
2121

2222
module private TestReferences =
2323

@@ -30,13 +30,13 @@ module Utilities =
3030
let systemDynamicRuntimeRef = lazy AssemblyMetadata.CreateFromImage(TestResources.NetFX.netstandard20.System_Dynamic_Runtime).GetReference(display = "System.Dynamic.Runtime.dll (netstandard 2.0 ref)")
3131

3232
[<RequireQualifiedAccess>]
33-
module NetCoreApp30 =
34-
let netStandard = lazy AssemblyMetadata.CreateFromImage(TestResources.NetFX.netcoreapp30.netstandard).GetReference(display = "netstandard.dll (netcoreapp 3.0 ref)")
35-
let mscorlibRef = lazy AssemblyMetadata.CreateFromImage(TestResources.NetFX.netcoreapp30.mscorlib).GetReference(display = "mscorlib.dll (netcoreapp 3.0 ref)")
36-
let systemRuntimeRef = lazy AssemblyMetadata.CreateFromImage(TestResources.NetFX.netcoreapp30.System_Runtime).GetReference(display = "System.Runtime.dll (netcoreapp 3.0 ref)")
37-
let systemCoreRef = lazy AssemblyMetadata.CreateFromImage(TestResources.NetFX.netcoreapp30.System_Core).GetReference(display = "System.Core.dll (netcoreapp 3.0 ref)")
38-
let systemDynamicRuntimeRef = lazy AssemblyMetadata.CreateFromImage(TestResources.NetFX.netcoreapp30.System_Dynamic_Runtime).GetReference(display = "System.Dynamic.Runtime.dll (netcoreapp 3.0 ref)")
39-
let systemConsoleRef = lazy AssemblyMetadata.CreateFromImage(TestResources.NetFX.netcoreapp30.System_Console).GetReference(display = "System.Console.dll (netcoreapp 3.0 ref)")
33+
module NetCoreApp31 =
34+
let netStandard = lazy AssemblyMetadata.CreateFromImage(TestResources.NetFX.netcoreapp31.netstandard).GetReference(display = "netstandard.dll (netcoreapp 3.1 ref)")
35+
let mscorlibRef = lazy AssemblyMetadata.CreateFromImage(TestResources.NetFX.netcoreapp31.mscorlib).GetReference(display = "mscorlib.dll (netcoreapp 3.1 ref)")
36+
let systemRuntimeRef = lazy AssemblyMetadata.CreateFromImage(TestResources.NetFX.netcoreapp31.System_Runtime).GetReference(display = "System.Runtime.dll (netcoreapp 3.1 ref)")
37+
let systemCoreRef = lazy AssemblyMetadata.CreateFromImage(TestResources.NetFX.netcoreapp31.System_Core).GetReference(display = "System.Core.dll (netcoreapp 3.1 ref)")
38+
let systemDynamicRuntimeRef = lazy AssemblyMetadata.CreateFromImage(TestResources.NetFX.netcoreapp31.System_Dynamic_Runtime).GetReference(display = "System.Dynamic.Runtime.dll (netcoreapp 3.1 ref)")
39+
let systemConsoleRef = lazy AssemblyMetadata.CreateFromImage(TestResources.NetFX.netcoreapp31.System_Console).GetReference(display = "System.Console.dll (netcoreapp 3.1 ref)")
4040

4141
[<RequireQualifiedAccess>]
4242
module private TargetFrameworkUtil =
@@ -45,13 +45,13 @@ module Utilities =
4545

4646
let private netStandard20References =
4747
lazy ImmutableArray.Create(NetStandard20.netStandard.Value, NetStandard20.mscorlibRef.Value, NetStandard20.systemRuntimeRef.Value, NetStandard20.systemCoreRef.Value, NetStandard20.systemDynamicRuntimeRef.Value)
48-
let private netCoreApp30References =
49-
lazy ImmutableArray.Create(NetCoreApp30.netStandard.Value, NetCoreApp30.mscorlibRef.Value, NetCoreApp30.systemRuntimeRef.Value, NetCoreApp30.systemCoreRef.Value, NetCoreApp30.systemDynamicRuntimeRef.Value, NetCoreApp30.systemConsoleRef.Value)
48+
let private netCoreApp31References =
49+
lazy ImmutableArray.Create(NetCoreApp31.netStandard.Value, NetCoreApp31.mscorlibRef.Value, NetCoreApp31.systemRuntimeRef.Value, NetCoreApp31.systemCoreRef.Value, NetCoreApp31.systemDynamicRuntimeRef.Value, NetCoreApp31.systemConsoleRef.Value)
5050

5151
let internal getReferences tf =
5252
match tf with
5353
| TargetFramework.NetStandard20 -> netStandard20References.Value
54-
| TargetFramework.NetCoreApp30 -> netCoreApp30References.Value
54+
| TargetFramework.NetCoreApp31 -> netCoreApp31References.Value
5555

5656
type RoslynLanguageVersion = LanguageVersion
5757

tests/fsharp/Compiler/Language/ByrefTests.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ type MyClass() =
229229
"""
230230

231231
let csCmpl =
232-
CompilationUtil.CreateCSharpCompilation(cs, CSharpLanguageVersion.CSharp8, TargetFramework.NetCoreApp30)
232+
CompilationUtil.CreateCSharpCompilation(cs, CSharpLanguageVersion.CSharp8, TargetFramework.NetCoreApp31)
233233
|> CompilationReference.Create
234234

235235
let fsCmpl =

0 commit comments

Comments
 (0)