Skip to content

Commit 486cb41

Browse files
authored
Merge pull request #4272 from 1eyewonder/net-update
Update .NET & FSharp.Core Version
2 parents d6fee24 + 97bf994 commit 486cb41

File tree

17 files changed

+116
-290
lines changed

17 files changed

+116
-290
lines changed

.config/dotnet-tools.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
"isRoot": true,
44
"tools": {
55
"paket": {
6-
"version": "7.2.1",
6+
"version": "8.0.3",
77
"commands": [
88
"paket"
9-
]
9+
],
10+
"rollForward": false
1011
}
1112
}
1213
}

build.fsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ let mutable dotnetExePath = "dotnet"
6767

6868
let buildDir = "bin"
6969
let buildDirNet461 = buildDir @@ "net461"
70-
let buildDirNetCore = buildDir @@ "netcoreapp2.1"
70+
let buildDirNet = buildDir @@ "net8"
7171
let buildDirBootstrapper = "bin_bootstrapper"
7272
let buildDirBootstrapperNet461 = buildDirBootstrapper @@ "net461"
73-
let buildDirBootstrapperNetCore = buildDirBootstrapper @@ "netcoreapp2.1"
73+
let buildDirBootstrapperNet = buildDirBootstrapper @@ "net8"
7474
let tempDir = "temp"
7575
let buildMergedDir = buildDir @@ "merged"
7676
let paketFile = buildMergedDir @@ "paket.exe"
@@ -116,10 +116,10 @@ Target "Clean" (fun _ ->
116116
++ "tests/**/bin"
117117
++ buildDir
118118
++ buildDirNet461
119-
++ buildDirNetCore
119+
++ buildDirNet
120120
++ buildDirBootstrapper
121121
++ buildDirBootstrapperNet461
122-
++ buildDirBootstrapperNetCore
122+
++ buildDirBootstrapperNet
123123
++ tempDir
124124
|> CleanDirs
125125

@@ -199,8 +199,8 @@ Target "Publish" (fun _ ->
199199
DotNetCli.Publish (fun c ->
200200
{ c with
201201
Project = "src/Paket"
202-
Framework = "netcoreapp2.1"
203-
Output = FullName (currentDirectory </> buildDirNetCore)
202+
Framework = "net8"
203+
Output = FullName (currentDirectory </> buildDirNet)
204204
ToolPath = dotnetExePath
205205
AdditionalArgs = publishArgs
206206
})
@@ -217,8 +217,8 @@ Target "Publish" (fun _ ->
217217
DotNetCli.Publish (fun c ->
218218
{ c with
219219
Project = "src/Paket.Bootstrapper"
220-
Framework = "netcoreapp2.1"
221-
Output = FullName (currentDirectory </> buildDirBootstrapperNetCore)
220+
Framework = "net8"
221+
Output = FullName (currentDirectory </> buildDirBootstrapperNet)
222222
ToolPath = dotnetExePath
223223
AdditionalArgs = publishArgs
224224
})
@@ -248,10 +248,10 @@ Target "RunTests" (fun _ ->
248248
})
249249

250250
runTest "net" "Paket.Tests" "net461"
251-
runTest "netcore" "Paket.Tests" "netcoreapp3.0"
251+
runTest "netcore" "Paket.Tests" "net8"
252252

253253
runTest "net" "Paket.Bootstrapper.Tests" "net461"
254-
runTest "netcore" "Paket.Bootstrapper.Tests" "netcoreapp3.0"
254+
runTest "netcore" "Paket.Bootstrapper.Tests" "net8"
255255
)
256256

257257
Target "QuickTest" (fun _ ->
@@ -355,7 +355,7 @@ Target "RunIntegrationTestsNetCore" (fun _ ->
355355
DotNetCli.Test (fun c ->
356356
{ c with
357357
Project = "integrationtests/Paket.IntegrationTests/Paket.IntegrationTests.fsproj"
358-
Framework = "netcoreapp3.1"
358+
Framework = "net8"
359359
AdditionalArgs =
360360
[ "--filter"; (if testSuiteFilterFlakyTests then "TestCategory=Flaky" else "TestCategory!=Flaky")
361361
sprintf "--logger:trx;LogFileName=%s" ("tests_result/netcore/Paket.IntegrationTests/TestResult.trx" |> Path.GetFullPath) ]

integrationtests/Paket.IntegrationTests/App.config

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@
22
<configuration>
33
<runtime>
44
<AppContextSwitchOverrides value="Switch.System.IO.UseLegacyPathHandling=false;Switch.System.IO.BlockLongPaths=false" />
5+
56

67
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
7-
<dependentAssembly>
8-
<Paket>True</Paket>
9-
<assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
10-
<bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="6.0.0.0" />
11-
</dependentAssembly>
128
<dependentAssembly>
139
<Paket>True</Paket>
1410
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />

integrationtests/Paket.IntegrationTests/FsiExtension.fs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
module FsiExtension =
33
open System
44
open System.IO
5-
open FSharp.Compiler.SourceCodeServices
5+
open FSharp.Compiler.CodeAnalysis
66
open FSharp.Compiler.Text
77
open NUnit.Framework
88

@@ -41,7 +41,6 @@ module FsiExtension =
4141
match answer with
4242
| FSharpCheckFileAnswer.Succeeded(result) ->
4343
Assert.IsTrue result.HasFullTypeCheckInfo
44-
Assert.IsTrue (Array.isEmpty result.Errors)
4544
Assert.AreEqual("v", result.PartialAssemblySignature.Entities.[0].MembersFunctionsAndValues.[0].DisplayName)
4645
Assert.AreEqual("FSharp.Data", result.PartialAssemblySignature.Entities.[0].MembersFunctionsAndValues.[0].FullType.TypeDefinition.AccessPath)
4746
Assert.AreEqual("JsonValue", result.PartialAssemblySignature.Entities.[0].MembersFunctionsAndValues.[0].FullType.TypeDefinition.DisplayName)

integrationtests/Paket.IntegrationTests/Paket.IntegrationTests.fsproj

Lines changed: 1 addition & 2 deletions
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;netcoreapp3.1</TargetFrameworks>
4+
<TargetFrameworks>net461;net8</TargetFrameworks>
55
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
66
<DefineConstants Condition=" '$(TargetFramework)' != 'net461'">PAKET_NETCORE;NO_UNIT_PLATFORMATTRIBUTE;TESTSUITE_KNOWN_FAILURE_DOTNETCORE_3005;FAKE_NETSTANDARD_API;@(DefineConstants)</DefineConstants>
77
</PropertyGroup>
@@ -20,7 +20,6 @@
2020
<Compile Include="UpdatePackageSpecs.fs" />
2121
<Compile Include="UpdateGroupsSpecs.fs" />
2222
<Compile Include="AddSpecs.fs" />
23-
<Compile Include="OutdatedSpecs.fs" />
2423
<Compile Include="PackSpecs.fs" />
2524
<Compile Include="InstallSpecs.fs" />
2625
<Compile Include="RestoreSpecs.fs" />

integrationtests/Paket.IntegrationTests/TestHelper.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ let dotnetToolPath =
2121

2222
let paketToolPath =
2323
#if PAKET_NETCORE
24-
dotnetToolPath, FullName(__SOURCE_DIRECTORY__ + "../../../bin/netcoreapp2.1/paket.dll")
24+
dotnetToolPath, FullName(__SOURCE_DIRECTORY__ + "../../../bin/net8/paket.dll")
2525
#else
2626
"", FullName(__SOURCE_DIRECTORY__ + "../../../bin/net461/paket.exe")
2727
#endif
2828

2929
let paketBootstrapperToolPath =
3030
#if PAKET_NETCORE
31-
dotnetToolPath, FullName(__SOURCE_DIRECTORY__ + "../../../bin_bootstrapper/netcoreapp2.1/paket.bootstrapper.dll")
31+
dotnetToolPath, FullName(__SOURCE_DIRECTORY__ + "../../../bin_bootstrapper/net8/paket.bootstrapper.dll")
3232
#else
3333
"", FullName(__SOURCE_DIRECTORY__ + "../../../bin_bootstrapper/net461/paket.bootstrapper.exe")
3434
#endif

paket.dependencies

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ content: none
55

66
nuget Newtonsoft.Json >= 10.0.3 redirects: force
77
nuget Argu >= 5.1.0
8-
nuget FSharp.Core >= 6.0.3 redirects: force
8+
nuget FSharp.Core >= 6.0.3
99
nuget Chessie >= 0.6
1010
nuget Mono.Cecil ~> 0.11.1
1111

1212
nuget System.Security.Cryptography.ProtectedData >= 4.4
1313

1414
nuget NETStandard.Library ~> 2.0
15-
nuget Microsoft.NETCore.App ~> 2.1
1615
nuget System.Net.Http.WinHttpHandler >= 4.5
1716
nuget Nuget.Packaging
1817
nuget Microsoft.Win32.Registry
@@ -57,7 +56,3 @@ group Build
5756

5857
# add icon to exe
5958
github enricosada/add_icon_to_exe:e11eda501acea369ac2950beb34b8888495bf21f rh/ResourceHacker.exe
60-
61-
group FSharpDepManagerExtension
62-
source https://api.nuget.org/v3/index.json
63-
nuget FSharp.Core = 5.0.0 redirects: force

0 commit comments

Comments
 (0)