From f9c5d067eac747e9479640b043d9c6404e62c607 Mon Sep 17 00:00:00 2001 From: Zach Bray Date: Mon, 26 Feb 2024 10:36:11 +0000 Subject: [PATCH] Upgrade .NET SDK to 8.0.201. I've updated the .NET SDK to `8.0`, which is the most recent LTS version. Support ends on 10 November 2026. There are several C# projects in the SBE solution. Only `sbe-dll` is consumed by users of SBE. Previously, `sbe-dll` had two targets: - `.NET Standard 2.0` (2017, supported by `.NET Framework >= 4.6.1` and `.NET Core >= 2.0`, which were both superseded by `.NET`) - `.NET Framework 4.5` (2012) In this commit, I have removed the _ancient_ `.NET Framework 4.5` target. This makes it easier to build SBE on Linux, as one only needs a recent .NET installation. I have also changed the other C# projects to target `.NET 8.0` and updated their dependencies. --- .github/workflows/ci.yml | 2 +- csharp/sbe-benchmarks/sbe-benchmarks.csproj | 9 ++++----- csharp/sbe-dll/sbe-dll.csproj | 8 ++------ csharp/sbe-generated/sbe-generated.csproj | 13 +++++-------- csharp/sbe-samples-car/sbe-samples-car.csproj | 6 +----- .../sbe-samples-extension.csproj | 9 ++------- csharp/sbe-tests/sbe-tests.csproj | 11 +++++------ 7 files changed, 20 insertions(+), 38 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d3272dee71..cfb5c13454 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,7 +71,7 @@ jobs: strategy: fail-fast: false matrix: - dotnet: [ '3.1.x' ] + dotnet: [ '8.0.x' ] env: DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true DOTNET_CLI_TELEMETRY_OPTOUT: 1 diff --git a/csharp/sbe-benchmarks/sbe-benchmarks.csproj b/csharp/sbe-benchmarks/sbe-benchmarks.csproj index 8d10e86c4f..3324fe01c2 100644 --- a/csharp/sbe-benchmarks/sbe-benchmarks.csproj +++ b/csharp/sbe-benchmarks/sbe-benchmarks.csproj @@ -1,11 +1,11 @@  - net461;netcoreapp3.1 + net8.0 Org.SbeTool.Sbe.Benchmarks sbe-benchmarks exe - Copyright (C) Bill Segall 2018, MarketFactory Inc 2017, Adaptive 2014. All rights reserved. + Copyright (C) Bill Segall 2018, MarketFactory Inc 2017, Adaptive 2014-2024. All rights reserved. SBE Exe @@ -16,9 +16,8 @@ - - - + + diff --git a/csharp/sbe-dll/sbe-dll.csproj b/csharp/sbe-dll/sbe-dll.csproj index 2c369ba21e..747306310d 100644 --- a/csharp/sbe-dll/sbe-dll.csproj +++ b/csharp/sbe-dll/sbe-dll.csproj @@ -1,11 +1,11 @@  - net45;netstandard2.0 + netstandard2.0 True SBE Org.SbeTool.Sbe.Dll Org.SbeTool.Sbe.Dll - Copyright (C) Bill Segall 2018-2021, MarketFactory Inc 2017, Adaptive 2014. All rights reserved. + Copyright (C) Bill Segall 2018-2021, MarketFactory Inc 2017, Adaptive 2014-2024. All rights reserved. true Bill Segall, MarketFactory Inc, Adaptive Consulting Apache-2.0 @@ -37,10 +37,6 @@ - - - - diff --git a/csharp/sbe-generated/sbe-generated.csproj b/csharp/sbe-generated/sbe-generated.csproj index 806168d7d5..f5b42e2355 100644 --- a/csharp/sbe-generated/sbe-generated.csproj +++ b/csharp/sbe-generated/sbe-generated.csproj @@ -1,26 +1,23 @@  - net45;netstandard2.0 + net8.0 Org.SbeTool.Sbe.Generated Org.SbeTool.Sbe.Generated - Copyright (C) Bill Segall 2018, MarketFactory Inc 2017, Adaptive 2014. All rights reserved. + Copyright (C) Bill Segall 2018, MarketFactory Inc 2017, Adaptive 2014-2024. All rights reserved. + 9 - TRACE,SBE_ENABLE_PRECEDENCE_CHECKS + TRACE;SBE_ENABLE_PRECEDENCE_CHECKS - TRACE,SBE_ENABLE_PRECEDENCE_CHECKS + TRACE;SBE_ENABLE_PRECEDENCE_CHECKS - - - - diff --git a/csharp/sbe-samples-car/sbe-samples-car.csproj b/csharp/sbe-samples-car/sbe-samples-car.csproj index 8ee29c2329..cf39c0d9ef 100644 --- a/csharp/sbe-samples-car/sbe-samples-car.csproj +++ b/csharp/sbe-samples-car/sbe-samples-car.csproj @@ -1,7 +1,7 @@  - net45;netcoreapp3.1 + net8.0 exe Org.SbeTool.Sbe.Example.Car Org.SbeTool.Sbe.Example.Car @@ -16,8 +16,4 @@ - - - - diff --git a/csharp/sbe-samples-extension/sbe-samples-extension.csproj b/csharp/sbe-samples-extension/sbe-samples-extension.csproj index 97899b3aa4..f4f7a7e311 100644 --- a/csharp/sbe-samples-extension/sbe-samples-extension.csproj +++ b/csharp/sbe-samples-extension/sbe-samples-extension.csproj @@ -1,11 +1,11 @@  - net45;netstandard2.0 + net8.0 exe Org.SbeTool.Sbe.Example.Extension Org.SbeTool.Sbe.Example.Extension - Copyright (C) Bill Segall 2018, MarketFactory Inc 2017, Adaptive 2014. All rights reserved. + Copyright (C) Bill Segall 2018, MarketFactory Inc 2017, Adaptive 2014-2024. All rights reserved. @@ -17,9 +17,4 @@ - - - - - diff --git a/csharp/sbe-tests/sbe-tests.csproj b/csharp/sbe-tests/sbe-tests.csproj index 468a1ab8ba..4d8bcee13f 100644 --- a/csharp/sbe-tests/sbe-tests.csproj +++ b/csharp/sbe-tests/sbe-tests.csproj @@ -1,10 +1,10 @@  - net45;netcoreapp3.1 + net8.0 Org.SbeTool.Sbe.Tests Org.SbeTool.Sbe.UnitTests True - Copyright (C) Bill Segall 2018, MarketFactory Inc 2017, Adaptive 2014. All rights reserved. + Copyright (C) Bill Segall 2018, MarketFactory Inc 2017, Adaptive 2014-2024. All rights reserved. @@ -18,10 +18,9 @@ - - - - + + +