Skip to content

Commit b1e1c80

Browse files
committed
Update to netcoreapp3.1 and netstandard2.1
1 parent 86e8e20 commit b1e1c80

File tree

8 files changed

+23
-23
lines changed

8 files changed

+23
-23
lines changed

build.fsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ let mutable dotnetExePath = "dotnet"
7272

7373
let buildDir = "bin"
7474
let buildDirNet461 = buildDir @@ "net461"
75-
let buildDirNetCore = buildDir @@ "netcoreapp2.1"
75+
let buildDirNetCore = buildDir @@ "netcoreapp3.1"
7676
let buildDirBootstrapper = "bin_bootstrapper"
7777
let buildDirBootstrapperNet461 = buildDirBootstrapper @@ "net461"
78-
let buildDirBootstrapperNetCore = buildDirBootstrapper @@ "netcoreapp2.1"
78+
let buildDirBootstrapperNetCore = buildDirBootstrapper @@ "netcoreapp3.1"
7979
let tempDir = "temp"
8080
let buildMergedDir = buildDir @@ "merged"
8181
let paketFile = buildMergedDir @@ "paket.exe"
@@ -222,7 +222,7 @@ Target "Publish" (fun _ ->
222222
DotNetCli.Publish (fun c ->
223223
{ c with
224224
Project = "src/Paket"
225-
Framework = "netcoreapp2.1"
225+
Framework = "netcoreapp3.1"
226226
Output = FullName (currentDirectory </> buildDirNetCore)
227227
ToolPath = dotnetExePath
228228
})
@@ -237,7 +237,7 @@ Target "Publish" (fun _ ->
237237
DotNetCli.Publish (fun c ->
238238
{ c with
239239
Project = "src/Paket.Bootstrapper"
240-
Framework = "netcoreapp2.1"
240+
Framework = "netcoreapp3.1"
241241
Output = FullName (currentDirectory </> buildDirBootstrapperNetCore)
242242
ToolPath = dotnetExePath
243243
})

integrationtests/Paket.IntegrationTests/FsiExtension.fs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module FsiExtension =
1313
"Release"
1414
#endif
1515

16-
let pathToExtension = Path.Combine(__SOURCE_DIRECTORY__, "..", "..", "src", "FSharp.DependencyManager.Paket", "bin", configuration, "netstandard2.0")
16+
let pathToExtension = Path.Combine(__SOURCE_DIRECTORY__, "..", "..", "src", "FSharp.DependencyManager.Paket", "bin", configuration, "netstandard2.1")
1717
let extensionFileName = "FSharp.DependencyManager.Paket.dll"
1818

1919
[<Test>]
@@ -25,18 +25,19 @@ module FsiExtension =
2525
printfn "binding redirect for FSharp.Core..."
2626
typedefof<Map<_,_>>.Assembly
2727
else
28-
e.RequestingAssembly
28+
e.RequestingAssembly
2929
)
30+
3031
let checker = FSharpChecker.Create(suggestNamesForErrors=true, keepAssemblyContents=true)
3132
let sourceText = """
3233
#r "paket: nuget FSharp.Data"
3334
let v = FSharp.Data.JsonValue.Boolean true
3435
"""
35-
let projectOptions =
36+
let projectOptions =
3637
checker.GetProjectOptionsFromScript("test.fsx", SourceText.ofString sourceText, otherFlags = [| "/langversion:preview"; sprintf "/compilertool:%s" pathToExtension |] )
3738
|> Async.RunSynchronously
3839
|> fst
39-
40+
4041
let _, answer = checker.ParseAndCheckFileInProject("test.fsx", 0, SourceText.ofString sourceText, projectOptions) |> Async.RunSynchronously
4142
match answer with
4243
| FSharpCheckFileAnswer.Succeeded(result) ->
@@ -68,7 +69,7 @@ module FsiExtension =
6869
p.WaitForExit()
6970
standardOutput, errorOutput
7071
{ file = fsxFile; stdOut = standardOutput; errOut = errorOutput; arguments = arguments }
71-
72+
7273
let runSingleFsxTest (fsxFile: FileInfo) =
7374

7475
let expectedOutput =
@@ -79,7 +80,7 @@ module FsiExtension =
7980
File.Create goldenFile |> ignore
8081
""
8182
let result = runSingleFsxTestForOutput fsxFile
82-
83+
8384
let actualOutput =
8485
(result.stdOut + result.errOut).Split([|System.Environment.NewLine|], System.StringSplitOptions.None)
8586
|> Array.filter (fun s -> not (s.StartsWith ":paket>"))
@@ -90,25 +91,24 @@ module FsiExtension =
9091
let actualOutput = normalizeCR actualOutput
9192
let expectedOutput = normalizeCR expectedOutput
9293
if actualOutput = expectedOutput then
93-
Pass fsxFile.FullName
94-
else
94+
Pass fsxFile.FullName
95+
else
9596
Failed(fsxFile.FullName, expectedOutput, actualOutput, result.arguments)
9697

9798
[<Test>]
9899
let ``run fsi integration tests that have deterministic output`` () =
99100
let fsxFiles = DirectoryInfo(fsxsFolder).GetFiles("*.fsx", SearchOption.AllDirectories)
100-
let failures =
101+
let failures =
101102
[|
102103
for fsx in fsxFiles do
103104
if not (fsx.Name.StartsWith "skip.") then
104-
105105
match runSingleFsxTest fsx with
106106
| Pass _ -> printfn "OK: %s" fsx.FullName
107107
| Failed(file,_,_,commandArguments) ->
108108
printfn "KO: %s" fsx.FullName
109109
yield file, commandArguments
110110
|]
111-
111+
112112
if failures.Length > 0 then
113113
failures
114114
|> Array.map (fun (fsxFile, arguments) -> sprintf "file: %s\ncommand: %s" fsxFile arguments)

src/FSharp.DependencyManager.Paket/FSharp.DependencyManager.Paket.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
4+
<TargetFramework>netstandard2.1</TargetFramework>
55
</PropertyGroup>
66

77
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

src/LockFileComparer/LockFileComparer.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp2.1</TargetFramework>
5+
<TargetFramework>netcoreapp3.1</TargetFramework>
66
</PropertyGroup>
77
<ItemGroup>
88
<Compile Include="Program.fs" />

src/Paket.Bootstrapper/Paket.Bootstrapper.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net461;netcoreapp2.1</TargetFrameworks>
5+
<TargetFrameworks>net461;netcoreapp3.1</TargetFrameworks>
66
<StartupObject>Paket.Bootstrapper.Program</StartupObject>
77
<AssemblyName>paket.bootstrapper</AssemblyName>
88
<ToolCommandName>paketbootstrapper</ToolCommandName>
@@ -16,7 +16,7 @@
1616

1717
<PropertyGroup Condition=" '$(PackAsTool)' == 'true'">
1818
<TargetFrameworks></TargetFrameworks>
19-
<TargetFramework>netcoreapp2.1</TargetFramework>
19+
<TargetFramework>netcoreapp3.1</TargetFramework>
2020
</PropertyGroup>
2121

2222
<ItemGroup Condition=" '$(PackAsTool)' == 'true'">

src/Paket.Core/Common/Utils.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ module ObservableExtensions =
780780
member __.Subscribe observer =
781781
let rm = e.Subscribe observer in f(); rm }
782782

783-
let sample milliseconds source =
783+
let sample (milliseconds:int) source =
784784
let relay (observer:IObserver<'T>) =
785785
let rec loop () = async {
786786
let! value = Async.AwaitObservable source

src/Paket.Core/Paket.Core.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
4-
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>net461;netstandard2.1</TargetFrameworks>
55
<AutoGenerateBindingRedirects Condition=" '$(TargetFramework)' == 'net461' ">true</AutoGenerateBindingRedirects>
66
<Version Condition="'$(PAKET_PROJ_VERSION)' != ''">$(PAKET_PROJ_VERSION)</Version>
77
<PackageVersion Condition="'$(PAKET_PROJ_VERSION)' != ''">$(PAKET_PROJ_VERSION)</PackageVersion>

src/Paket/Paket.fsproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFrameworks>net461;netcoreapp2.1</TargetFrameworks>
4+
<TargetFrameworks>net461;netcoreapp3.1</TargetFrameworks>
55
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
66
<PackageId>Paket</PackageId>
77
<AssemblyName>paket</AssemblyName>
@@ -14,7 +14,7 @@
1414
<PropertyGroup Condition=" '$(PackAsTool)' == 'true' ">
1515
<!-- .net tools support netcoreapp only -->
1616
<TargetFrameworks></TargetFrameworks>
17-
<TargetFramework>netcoreapp2.1</TargetFramework>
17+
<TargetFramework>netcoreapp3.1</TargetFramework>
1818
</PropertyGroup>
1919
<ItemGroup>
2020
<Compile Include="AssemblyInfo.fs" />

0 commit comments

Comments
 (0)