Skip to content

Commit

Permalink
Upgrade sdk to .NET 8 (#55)
Browse files Browse the repository at this point in the history
* Update project to .NET 8

* Update paket to v8

* Use correct base image name.
  • Loading branch information
eiriktsarpalis authored Nov 17, 2023
1 parent a3787ec commit ddc64e8
Show file tree
Hide file tree
Showing 13 changed files with 87 additions and 99 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"paket": {
"version": "7.1.5",
"version": "8.0.0",
"commands": [
"paket"
]
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
include-prerelease: true
dotnet-version: 8.0.x
- name: Build
run: .\build.cmd -t Bundle

Expand All @@ -36,7 +35,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x
include-prerelease: true
- name: Build
run: ./build.sh -t Bundle
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0-bullseye-slim
FROM mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim

# allow pushing docs & tags using docker builds:
# pass git credentials using $GITHUB_TOKEN environment variable
Expand Down
6 changes: 3 additions & 3 deletions paket.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ nuget Microsoft.SourceLink.GitHub ~> 1.0.0 copy_local:true

group Test
source https://api.nuget.org/v3/index.json
framework: net7.0
framework: net8.0

nuget FSharp.Core >= 6.0.0
nuget FSharp.Core >= 7.0.0
nuget Microsoft.NET.Test.Sdk ~> 17.0
nuget xunit ~> 2.4.0
nuget xunit.runner.visualstudio ~> 2.4.0 version_in_path: true
Expand All @@ -20,7 +20,7 @@ group Test
nuget BenchmarkDotNet ~> 0.13.0
nuget BenchmarkDotNet.Diagnostics.Windows ~> 0.13.0
nuget Newtonsoft.Json ~> 13.0
nuget System.Formats.Cbor ~> 6.0
nuget System.Formats.Cbor ~> 7.0
nuget FSharp.Data ~> 3.0
nuget DotNext ~> 3.0

Expand Down
150 changes: 69 additions & 81 deletions paket.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ RESTRICTION: || (== netcoreapp3.1) (== netstandard2.0)
NUGET
remote: https://api.nuget.org/v3/index.json
FSharp.Core (4.5.4)
Microsoft.Build.Tasks.Git (1.1.1) - copy_local: true
Microsoft.SourceLink.Common (1.1.1) - copy_local: true
Microsoft.Build.Tasks.Git (8.0) - copy_local: true
Microsoft.SourceLink.Common (8.0) - copy_local: true
Microsoft.SourceLink.GitHub (1.0) - copy_local: true
Microsoft.Build.Tasks.Git (>= 1.0)
Microsoft.SourceLink.Common (>= 1.0)
Expand All @@ -13,25 +13,23 @@ NUGET
System.Reflection.Emit.ILGeneration (>= 4.7) - restriction: || (&& (== netcoreapp3.1) (< netcoreapp2.0) (< netstandard2.1)) (&& (== netcoreapp3.1) (< netstandard2.0)) (&& (== netcoreapp3.1) (< portable-net45+wp8)) (&& (== netcoreapp3.1) (>= uap10.1)) (== netstandard2.0)

GROUP Test
RESTRICTION: == net7.0
RESTRICTION: == net8.0
NUGET
remote: https://api.nuget.org/v3/index.json
BenchmarkDotNet (0.13.2)
BenchmarkDotNet.Annotations (>= 0.13.2)
CommandLineParser (>= 2.4.3)
BenchmarkDotNet (0.13.10)
BenchmarkDotNet.Annotations (>= 0.13.10)
CommandLineParser (>= 2.9.1)
Gee.External.Capstone (>= 2.3)
Iced (>= 1.17)
Microsoft.CodeAnalysis.CSharp (>= 3.0)
Microsoft.CodeAnalysis.CSharp (>= 4.1)
Microsoft.Diagnostics.Runtime (>= 2.2.332302)
Microsoft.Diagnostics.Tracing.TraceEvent (>= 3.0.2)
Microsoft.DotNet.PlatformAbstractions (>= 3.1.6)
Perfolizer (>= 0.2.1)
System.Management (>= 6.0)
System.Reflection.Emit (>= 4.7)
System.Reflection.Emit.Lightweight (>= 4.7)
System.Threading.Tasks.Extensions (>= 4.5.4)
BenchmarkDotNet.Annotations (0.13.2)
BenchmarkDotNet.Diagnostics.Windows (0.13.2)
BenchmarkDotNet (>= 0.13.2)
Perfolizer (0.2.1)
System.Management (>= 5.0)
BenchmarkDotNet.Annotations (0.13.10)
BenchmarkDotNet.Diagnostics.Windows (0.13.10)
BenchmarkDotNet (>= 0.13.10)
Microsoft.Diagnostics.Tracing.TraceEvent (>= 3.0.2)
CommandLineParser (2.9.1)
DotNext (3.3.1)
Expand All @@ -49,84 +47,75 @@ NUGET
System.ValueTuple (>= 4.5)
xunit.abstractions (>= 2.0.1)
xunit.core (>= 2.2)
FSharp.Core (6.0.6)
FSharp.Core (8.0.100)
FSharp.Data (3.3.3)
FSharp.Core (>= 4.3.4)
FSharp.Quotations.Evaluator (2.1)
FSharp.Core (>= 4.3.1)
Iced (1.17)
Microsoft.Bcl.AsyncInterfaces (6.0)
Microsoft.CodeAnalysis.Analyzers (3.3.3)
Microsoft.CodeAnalysis.Common (4.3.1)
Microsoft.CodeAnalysis.Analyzers (>= 3.3.3)
Gee.External.Capstone (2.3)
Iced (1.20)
Microsoft.CodeAnalysis.Analyzers (3.3.4)
Microsoft.CodeAnalysis.Common (4.7)
Microsoft.CodeAnalysis.Analyzers (>= 3.3.4)
System.Collections.Immutable (>= 7.0)
System.Reflection.Metadata (>= 7.0)
System.Runtime.CompilerServices.Unsafe (>= 6.0)
Microsoft.CodeAnalysis.CSharp (4.7)
Microsoft.CodeAnalysis.Common (4.7)
Microsoft.CodeCoverage (17.8)
Microsoft.Diagnostics.NETCore.Client (0.2.452401)
Microsoft.Extensions.Logging (>= 6.0)
Microsoft.Diagnostics.Runtime (3.1.456101)
Microsoft.Diagnostics.NETCore.Client (>= 0.2.410101)
System.Collections.Immutable (>= 6.0)
System.Memory (>= 4.5.4)
System.Reflection.Metadata (>= 5.0)
System.Runtime.CompilerServices.Unsafe (>= 6.0)
System.Text.Encoding.CodePages (>= 6.0)
System.Threading.Tasks.Extensions (>= 4.5.4)
Microsoft.CodeAnalysis.CSharp (4.3.1)
Microsoft.CodeAnalysis.Common (4.3.1)
Microsoft.CodeCoverage (17.3.2)
Microsoft.Diagnostics.NETCore.Client (0.2.328102)
Microsoft.Bcl.AsyncInterfaces (>= 1.1)
Microsoft.Extensions.Logging (>= 2.1.1)
Microsoft.Diagnostics.Runtime (2.2.332302)
Microsoft.Diagnostics.NETCore.Client (>= 0.2.251802)
System.Collections.Immutable (>= 5.0)
System.Runtime.CompilerServices.Unsafe (>= 5.0)
Microsoft.Diagnostics.Tracing.TraceEvent (3.0.5)
Microsoft.Diagnostics.Tracing.TraceEvent (3.1.6)
Microsoft.Win32.Registry (>= 4.4)
System.Runtime.CompilerServices.Unsafe (>= 5.0)
Microsoft.DotNet.PlatformAbstractions (3.1.6)
Microsoft.Extensions.DependencyInjection (6.0)
Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0)
System.Runtime.CompilerServices.Unsafe (>= 6.0)
Microsoft.Extensions.DependencyInjection.Abstractions (6.0)
Microsoft.Extensions.Logging (6.0)
Microsoft.Extensions.DependencyInjection (>= 6.0)
Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0)
Microsoft.Extensions.Logging.Abstractions (>= 6.0)
Microsoft.Extensions.Options (>= 6.0)
System.Diagnostics.DiagnosticSource (>= 6.0)
Microsoft.Extensions.Logging.Abstractions (6.0.2)
Microsoft.Extensions.Options (6.0)
Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0)
Microsoft.Extensions.Primitives (>= 6.0)
Microsoft.Extensions.Primitives (6.0)
System.Runtime.CompilerServices.Unsafe (>= 6.0)
Microsoft.NET.Test.Sdk (17.3.2)
Microsoft.CodeCoverage (>= 17.3.2)
Microsoft.TestPlatform.TestHost (>= 17.3.2)
Microsoft.NETCore.Platforms (6.0.5)
Microsoft.TestPlatform.ObjectModel (17.3.2)
NuGet.Frameworks (>= 5.11)
Microsoft.Extensions.DependencyInjection (8.0)
Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0)
Microsoft.Extensions.DependencyInjection.Abstractions (8.0)
Microsoft.Extensions.Logging (8.0)
Microsoft.Extensions.DependencyInjection (>= 8.0)
Microsoft.Extensions.Logging.Abstractions (>= 8.0)
Microsoft.Extensions.Options (>= 8.0)
Microsoft.Extensions.Logging.Abstractions (8.0)
Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0)
Microsoft.Extensions.Options (8.0)
Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0)
Microsoft.Extensions.Primitives (>= 8.0)
Microsoft.Extensions.Primitives (8.0)
Microsoft.NET.Test.Sdk (17.8)
Microsoft.CodeCoverage (>= 17.8)
Microsoft.TestPlatform.TestHost (>= 17.8)
Microsoft.NETCore.Platforms (7.0.4)
Microsoft.TestPlatform.ObjectModel (17.8)
NuGet.Frameworks (>= 6.5)
System.Reflection.Metadata (>= 1.6)
Microsoft.TestPlatform.TestHost (17.3.2)
Microsoft.TestPlatform.ObjectModel (>= 17.3.2)
Newtonsoft.Json (>= 9.0.1)
Microsoft.TestPlatform.TestHost (17.8)
Microsoft.TestPlatform.ObjectModel (>= 17.8)
Newtonsoft.Json (>= 13.0.1)
Microsoft.Win32.Registry (5.0)
System.Security.AccessControl (>= 5.0)
System.Security.Principal.Windows (>= 5.0)
NETStandard.Library (2.0.3)
Microsoft.NETCore.Platforms (>= 1.1)
Newtonsoft.Json (13.0.1)
NuGet.Frameworks (6.3)
Newtonsoft.Json (13.0.3)
NuGet.Frameworks (6.8)
Perfolizer (0.2.1)
System.Memory (>= 4.5.3)
System.CodeDom (6.0)
System.Collections.Immutable (6.0)
System.Runtime.CompilerServices.Unsafe (>= 6.0)
System.Diagnostics.DiagnosticSource (6.0)
System.Runtime.CompilerServices.Unsafe (>= 6.0)
System.Formats.Cbor (6.0)
System.Management (6.0)
System.CodeDom (>= 6.0)
System.CodeDom (8.0)
System.Collections.Immutable (8.0)
System.Formats.Cbor (7.0)
System.Management (8.0)
System.CodeDom (>= 8.0)
System.Memory (4.5.5)
System.Reflection.Emit (4.7)
System.Reflection.Emit.Lightweight (4.7)
System.Reflection.Metadata (6.0.1)
System.Collections.Immutable (>= 6.0)
System.Reflection.Metadata (8.0)
System.Collections.Immutable (>= 8.0)
System.Runtime.CompilerServices.Unsafe (6.0)
System.Text.Encoding.CodePages (6.0)
System.Runtime.CompilerServices.Unsafe (>= 6.0)
System.Threading.Tasks.Extensions (4.5.4)
System.Security.AccessControl (6.0)
System.Security.Principal.Windows (5.0)
System.ValueTuple (4.5)
Unquote (6.1)
FSharp.Core (>= 4.7.2)
Expand All @@ -135,9 +124,8 @@ NUGET
xunit.assert (>= 2.4.2)
xunit.core (2.4.2)
xunit.abstractions (2.0.3)
xunit.analyzers (1.0)
xunit.assert (2.4.2)
NETStandard.Library (>= 1.6.1)
xunit.analyzers (1.5)
xunit.assert (2.6.1)
xunit.core (2.4.2)
xunit.extensibility.core (2.4.2)
xunit.extensibility.execution (2.4.2)
Expand Down
2 changes: 1 addition & 1 deletion samples/Helpers/Helpers.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion samples/TypeShape.Samples/TypeShape.Samples.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<NoWarn>FS0020</NoWarn>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion samples/TypeShape.Samples/test.fsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#I "bin/Debug/net7.0"
#I "bin/Debug/net8.0"
#r "TypeShape.dll"
#r "Helpers.dll"
#r "TypeShape.Samples.dll"
Expand Down
4 changes: 2 additions & 2 deletions tests/TypeShape.Benchmarks/MemberAccessors.fs
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ with
match u with
| A _ -> 0
| B _ -> 1
| C _ -> 2
| C -> 2

[<MethodImpl(MethodImplOptions.NoInlining)>]
member u.GetTag_NoInlining() =
match u with
| A _ -> 0
| B _ -> 1
| C _ -> 2
| C -> 2

type TupleType = int * int * int * int * int * int * int * int * int * int
type StructTupleType = (struct(int * int * int * int * int * int * int * int * int * int))
Expand Down
5 changes: 2 additions & 3 deletions tests/TypeShape.Benchmarks/TypeShape.Benchmarks.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Configurations>Debug;Release;Debug-NoEmit;Release-NoEmit</Configurations>
<ServerGarbageCollection>true</ServerGarbageCollection>
<TieredPGO>true</TieredPGO>
<ServerGarbageCollection>true</ServerGarbageCollection>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\samples\TypeShape.Samples\HKT\Common.fs" Link="Implementations\Common.fs" />
Expand Down
2 changes: 1 addition & 1 deletion tests/TypeShape.CSharp.Tests/TypeShape.CSharp.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>
</PropertyGroup>

Expand Down
2 changes: 2 additions & 0 deletions tests/TypeShape.Tests/StagedClone.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[<AutoOpen>]
module TypeShape.Tests.StagedClone

#nowarn "44" // SerializationInfo is obsolete

open System
open System.Runtime.Serialization
open FSharp.Quotations
Expand Down
2 changes: 1 addition & 1 deletion tests/TypeShape.Tests/TypeShape.Tests.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<Configurations>Debug;Release;Debug-NoEmit;Release-NoEmit</Configurations>
</PropertyGroup>
Expand Down

0 comments on commit ddc64e8

Please sign in to comment.