From af9ab313bc0bbb96e2500a20e570b97b1fd8d506 Mon Sep 17 00:00:00 2001 From: Marius Thesing Date: Sun, 27 Oct 2024 10:20:31 +0100 Subject: [PATCH] Update dependencies and target frameworks and fix build warnings --- .../GeoJSON.Text.Test.Benchmark.csproj | 9 ++++----- src/GeoJSON.Text.Test.Benchmark/TestConfig.cs | 6 +++--- .../GeoJSON.Text.Test.Unit.csproj | 15 +++++++-------- src/GeoJSON.Text/GeoJSON.Text.csproj | 12 ++++-------- 4 files changed, 18 insertions(+), 24 deletions(-) diff --git a/src/GeoJSON.Text.Test.Benchmark/GeoJSON.Text.Test.Benchmark.csproj b/src/GeoJSON.Text.Test.Benchmark/GeoJSON.Text.Test.Benchmark.csproj index 8aefd83..1135353 100644 --- a/src/GeoJSON.Text.Test.Benchmark/GeoJSON.Text.Test.Benchmark.csproj +++ b/src/GeoJSON.Text.Test.Benchmark/GeoJSON.Text.Test.Benchmark.csproj @@ -1,11 +1,10 @@  - net6.0;net7.0;netstandard2.0 + net6.0;net8.0 disable enable False - 10 @@ -27,9 +26,9 @@ - - - + + + diff --git a/src/GeoJSON.Text.Test.Benchmark/TestConfig.cs b/src/GeoJSON.Text.Test.Benchmark/TestConfig.cs index 8c0324b..4ba45b5 100644 --- a/src/GeoJSON.Text.Test.Benchmark/TestConfig.cs +++ b/src/GeoJSON.Text.Test.Benchmark/TestConfig.cs @@ -33,7 +33,7 @@ public TestConfig() private class FastestToSlowestOrderer : IOrderer { - public IEnumerable GetExecutionOrder(ImmutableArray benchmarksCase) => + public IEnumerable GetExecutionOrder(ImmutableArray benchmarksCase, IEnumerable? order = null) => from benchmark in benchmarksCase orderby benchmark.Parameters["X"] descending, benchmark.Descriptor.WorkloadMethodDisplayInfo @@ -44,13 +44,13 @@ from benchmark in benchmarksCase public string GetLogicalGroupKey(ImmutableArray allBenchmarksCases, BenchmarkCase benchmarkCase) => benchmarkCase.Job.DisplayInfo + "_" + benchmarkCase.Parameters.DisplayInfo; - public IEnumerable> GetLogicalGroupOrder(IEnumerable> logicalGroups) => + public IEnumerable> GetLogicalGroupOrder(IEnumerable> logicalGroups, IEnumerable? order = null) => logicalGroups.OrderBy(it => it.Key); public IEnumerable GetSummaryOrder(ImmutableArray benchmarksCases, Summary summary) { var benchmarkResult = from benchmark in benchmarksCases - orderby summary[benchmark].ResultStatistics.Mean + orderby summary[benchmark]?.ResultStatistics?.Mean ?? 0 select benchmark; return benchmarkResult; diff --git a/src/GeoJSON.Text.Test.Unit/GeoJSON.Text.Test.Unit.csproj b/src/GeoJSON.Text.Test.Unit/GeoJSON.Text.Test.Unit.csproj index 4aaddd3..8b52673 100644 --- a/src/GeoJSON.Text.Test.Unit/GeoJSON.Text.Test.Unit.csproj +++ b/src/GeoJSON.Text.Test.Unit/GeoJSON.Text.Test.Unit.csproj @@ -4,9 +4,8 @@ {6C93B314-9208-4684-B873-172F7EC81689} GeoJSON.Text.Tests GeoJSON.Text.Tests - net6.0;net7.0;netstandard2.0 + net6.0;net8.0 false - 10 @@ -61,18 +60,18 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - + + + + diff --git a/src/GeoJSON.Text/GeoJSON.Text.csproj b/src/GeoJSON.Text/GeoJSON.Text.csproj index 3b580a2..bed1fa6 100644 --- a/src/GeoJSON.Text/GeoJSON.Text.csproj +++ b/src/GeoJSON.Text/GeoJSON.Text.csproj @@ -1,7 +1,7 @@  - net6.0;net7.0;netstandard2.0 + net6.0;net8.0;netstandard2.0 10 .Net types for the GeoJSON RFC to be used with System.Text.Json Matt Hunt @@ -29,15 +29,11 @@ - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - + - - + + \ No newline at end of file