diff --git a/CodeGen/CodeGen.csproj b/CodeGen/CodeGen.csproj index eca752f259..9f62eb8fad 100644 --- a/CodeGen/CodeGen.csproj +++ b/CodeGen/CodeGen.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 latest enable diff --git a/CodeGen/Exceptions/UnitsNetCodeGenException.cs b/CodeGen/Exceptions/UnitsNetCodeGenException.cs index 2e98bc3e86..e25340993a 100644 --- a/CodeGen/Exceptions/UnitsNetCodeGenException.cs +++ b/CodeGen/Exceptions/UnitsNetCodeGenException.cs @@ -2,20 +2,11 @@ // Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. using System; -using System.Runtime.Serialization; namespace CodeGen.Exceptions { internal class UnitsNetCodeGenException : Exception { - public UnitsNetCodeGenException() - { - } - - protected UnitsNetCodeGenException(SerializationInfo info, StreamingContext context) : base(info, context) - { - } - public UnitsNetCodeGenException(string message) : base(message) { } diff --git a/PerfTests/PerfTest_Startup/PerfTest_Startup.csproj b/PerfTests/PerfTest_Startup/PerfTest_Startup.csproj index fa16b7ff97..dd5984c9e8 100644 --- a/PerfTests/PerfTest_Startup/PerfTest_Startup.csproj +++ b/PerfTests/PerfTest_Startup/PerfTest_Startup.csproj @@ -2,7 +2,7 @@ Exe - net7.0 + net8.0 enable enable perftest diff --git a/PerfTests/PerfTest_Startup_v4_144_0/PerfTest_Startup_v4_144_0.csproj b/PerfTests/PerfTest_Startup_v4_144_0/PerfTest_Startup_v4_144_0.csproj index 562902a0c0..6ce0806129 100644 --- a/PerfTests/PerfTest_Startup_v4_144_0/PerfTest_Startup_v4_144_0.csproj +++ b/PerfTests/PerfTest_Startup_v4_144_0/PerfTest_Startup_v4_144_0.csproj @@ -2,7 +2,7 @@ Exe - net7.0 + net8.0 enable enable perftest_before diff --git a/PerfTests/PerfTest_Startup_v4_72_0/PerfTest_Startup_v4_72_0.csproj b/PerfTests/PerfTest_Startup_v4_72_0/PerfTest_Startup_v4_72_0.csproj index 5140e2090b..03686a9f46 100644 --- a/PerfTests/PerfTest_Startup_v4_72_0/PerfTest_Startup_v4_72_0.csproj +++ b/PerfTests/PerfTest_Startup_v4_72_0/PerfTest_Startup_v4_72_0.csproj @@ -2,7 +2,7 @@ Exe - net7.0 + net8.0 enable enable perftest_before diff --git a/UnitsNet.Benchmark/Scripts/json-export-all-runtimes.bat b/UnitsNet.Benchmark/Scripts/json-export-all-runtimes.bat index 8c631cb1de..895d9d9cb1 100644 --- a/UnitsNet.Benchmark/Scripts/json-export-all-runtimes.bat +++ b/UnitsNet.Benchmark/Scripts/json-export-all-runtimes.bat @@ -4,8 +4,8 @@ SET projectdir="%scriptdir%..\.." SET exportdir="%projectdir%\Artifacts\Benchmark" :: this fails on the build server (also tested with the nightly benchmark.net package: 0.12.1.1533): possibly related to https://github.com/dotnet/BenchmarkDotNet/issues/1487 dotnet run --project "%projectdir%/UnitsNet.Benchmark" -c Release ^ ---framework net6.0 ^ ---runtimes net472 net48 netcoreapp2.1 netcoreapp3.1 net6.0 ^ +--framework net8.0 ^ +--runtimes net48 net8.0 ^ --artifacts=%exportdir% ^ --exporters json ^ --filter * ^ @@ -14,4 +14,4 @@ dotnet run --project "%projectdir%/UnitsNet.Benchmark" -c Release ^ --join %1 %2 %3 :: this runs fine, however there is currently no way of displaying multiple-lines-per-chart: see https://github.com/rhysd/github-action-benchmark/issues/18 -:: dotnet run --project "%scriptdir%/UnitsNet.Benchmark" -c Release -f net6.0 --runtimes netcoreapp31 netcoreapp50 --filter ** --artifacts="%scriptdir%/Artifacts/Benchmark" --exporters json +:: dotnet run --project "%scriptdir%/UnitsNet.Benchmark" -c Release -f net8.0 --runtimes net48 net8.0 --filter ** --artifacts="%scriptdir%/Artifacts/Benchmark" --exporters json diff --git a/UnitsNet.Benchmark/Scripts/json-export-net5.bat b/UnitsNet.Benchmark/Scripts/json-export-net5.bat deleted file mode 100644 index 6d446ec0b5..0000000000 --- a/UnitsNet.Benchmark/Scripts/json-export-net5.bat +++ /dev/null @@ -1,17 +0,0 @@ -@echo off -SET scriptdir=%~dp0 -SET projectdir="%scriptdir%..\.." -SET exportdir="%projectdir%\Artifacts\Benchmark" -:: this fails on the build server (also tested with the nightly benchmark.net package: 0.12.1.1533): possibly related to https://github.com/dotnet/BenchmarkDotNet/issues/1487 -dotnet run --project "%projectdir%\UnitsNet.Benchmark" -c Release ^ ---framework net5.0 ^ ---runtimes net5.0 ^ ---artifacts=%exportdir% ^ ---exporters json ^ ---filter * ^ ---iterationTime 250 ^ ---statisticalTest 0.001ms ^ ---join %1 %2 %3 - -:: this runs fine, however there is currently no way of displaying multiple-lines-per-chart: see https://github.com/rhysd/github-action-benchmark/issues/18 -:: dotnet run --project "%scriptdir%/UnitsNet.Benchmark" -c Release -f net5.0 --runtimes netcoreapp31 net5.0 --filter ** --artifacts="%scriptdir%/Artifacts/Benchmark" --exporters json diff --git a/UnitsNet.Benchmark/Scripts/r-plot-all-runtimes.bat b/UnitsNet.Benchmark/Scripts/r-plot-all-runtimes.bat index aa592c0fba..19cff17270 100644 --- a/UnitsNet.Benchmark/Scripts/r-plot-all-runtimes.bat +++ b/UnitsNet.Benchmark/Scripts/r-plot-all-runtimes.bat @@ -4,8 +4,8 @@ SET projectdir="%scriptdir%..\.." SET exportdir="%projectdir%\Artifacts\Benchmark" :: this fails on the build server (also tested with the nightly benchmark.net package: 0.12.1.1533): possibly related to https://github.com/dotnet/BenchmarkDotNet/issues/1487 dotnet run --project "%projectdir%\UnitsNet.Benchmark" -c Release ^ ---framework net5.0 ^ ---runtimes net472 net48 netcoreapp2.1 netcoreapp3.1 net6.0 ^ +--framework net8.0 ^ +--runtimes net48 net8.0 ^ --artifacts=%exportdir% ^ --exporters rplot ^ --filter * ^ diff --git a/UnitsNet.Benchmark/UnitsNet.Benchmark.csproj b/UnitsNet.Benchmark/UnitsNet.Benchmark.csproj index 917567e332..f996561b42 100644 --- a/UnitsNet.Benchmark/UnitsNet.Benchmark.csproj +++ b/UnitsNet.Benchmark/UnitsNet.Benchmark.csproj @@ -1,7 +1,7 @@  Exe - net6.0;net48 + net8.0 4.0.0.0 4.0.0.0 UnitsNet.Benchmark diff --git a/UnitsNet.NumberExtensions.Tests/UnitsNet.NumberExtensions.Tests.csproj b/UnitsNet.NumberExtensions.Tests/UnitsNet.NumberExtensions.Tests.csproj index 015498125f..bbe44eb686 100644 --- a/UnitsNet.NumberExtensions.Tests/UnitsNet.NumberExtensions.Tests.csproj +++ b/UnitsNet.NumberExtensions.Tests/UnitsNet.NumberExtensions.Tests.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 UnitsNet.NumberExtensions.Tests latest enable diff --git a/UnitsNet.NumberExtensions/UnitsNet.NumberExtensions.csproj b/UnitsNet.NumberExtensions/UnitsNet.NumberExtensions.csproj index 871a27ef16..7342c65021 100644 --- a/UnitsNet.NumberExtensions/UnitsNet.NumberExtensions.csproj +++ b/UnitsNet.NumberExtensions/UnitsNet.NumberExtensions.csproj @@ -22,7 +22,7 @@ latest enable UnitsNet - netstandard2.0;net7.0 + netstandard2.0;net8.0 diff --git a/UnitsNet.Tests/UnitsNet.Tests.csproj b/UnitsNet.Tests/UnitsNet.Tests.csproj index 9fbd0a02f3..c863b2f552 100644 --- a/UnitsNet.Tests/UnitsNet.Tests.csproj +++ b/UnitsNet.Tests/UnitsNet.Tests.csproj @@ -1,7 +1,7 @@  - net7.0;net48 + net8.0 latest true CS0618 diff --git a/UnitsNet/UnitsNet.csproj b/UnitsNet/UnitsNet.csproj index 6db314ccc2..e3b9b50606 100644 --- a/UnitsNet/UnitsNet.csproj +++ b/UnitsNet/UnitsNet.csproj @@ -24,7 +24,7 @@ latest enable UnitsNet - netstandard2.0;net7.0 + netstandard2.0;net8.0