From cb81ee403ecf1d9d39723649ef3757da3b34d81e Mon Sep 17 00:00:00 2001 From: Martin Costello Date: Tue, 12 Nov 2024 23:28:36 +0000 Subject: [PATCH] Update to .NET 9 (#634) * Update to .NET 9 preview 1 Update to preview 1 of .NET 9. * Update to .NET 9 preview 2 Update to preview 2 of .NET 9. * Update .NET SDK (#655) Update .NET SDK to version 9.0.100-preview.3.24204.13. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Update NuGet packages Update NuGet packages for .NET 9 preview 3. * Update .NET SDK (#688) Update .NET SDK to version 9.0.100-preview.4.24267.66. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Bump NuGet packages Update NuGet packages for .NET 9 preview 4. * Update .NET SDK (#704) Update .NET SDK to version 9.0.100-preview.5.24307.3. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Bump packages Update NuGet packages for preview 5. * Update .NET SDK (#716) Update .NET SDK to version 9.0.100-preview.6.24328.19. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Bump packages Bump NuGet packages for .NET 9 preview 6. * Update .NET SDK (#735) Update .NET SDK to version 9.0.100-preview.7.24407.12. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Bump NuGet packages Update NuGet packages for .NET 9 preview 7. * Update .NET SDK (#749) Update .NET SDK to version 9.0.100-rc.1.24452.12. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Update NuGet packages Update NuGet packages for RC1. * Update .NET SDK (#763) Update .NET SDK to version 9.0.100-rc.2.24474.11. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Update NuGet packages Update NuGet packages for .NET 9 RC2. * Update .NET SDK (#782) Update .NET SDK to version 9.0.100. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Bump NuGet packages Update NuGet packages for .NET 9 GA. --------- Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> --- Directory.Packages.props | 4 ++-- JustEat.StatsD.ruleset | 1 + build.ps1 | 1 - global.json | 2 +- src/JustEat.StatsD/JustEat.StatsD.csproj | 6 +----- tests/Benchmark/Benchmark.csproj | 2 +- tests/JustEat.StatsD.Tests/Extensions/TimingConstants.cs | 2 +- tests/JustEat.StatsD.Tests/JustEat.StatsD.Tests.csproj | 2 +- 8 files changed, 8 insertions(+), 12 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index f160c515..8f4406cf 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -25,8 +25,8 @@ - - + + diff --git a/JustEat.StatsD.ruleset b/JustEat.StatsD.ruleset index c0d53ba2..1595d762 100644 --- a/JustEat.StatsD.ruleset +++ b/JustEat.StatsD.ruleset @@ -4,5 +4,6 @@ + diff --git a/build.ps1 b/build.ps1 index 5233f542..a9b9cbb6 100755 --- a/build.ps1 +++ b/build.ps1 @@ -9,7 +9,6 @@ param( $ErrorActionPreference = "Stop" $ProgressPreference = "SilentlyContinue" -$env:MSBUILDTERMINALLOGGER = "auto" $solutionPath = $PSScriptRoot $sdkFile = Join-Path $solutionPath "global.json" diff --git a/global.json b/global.json index 66e4c11e..217f7c9f 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "8.0.403", + "version": "9.0.100", "allowPrerelease": false, "rollForward": "latestMajor" } diff --git a/src/JustEat.StatsD/JustEat.StatsD.csproj b/src/JustEat.StatsD/JustEat.StatsD.csproj index 1ae8a6ae..2df56b44 100644 --- a/src/JustEat.StatsD/JustEat.StatsD.csproj +++ b/src/JustEat.StatsD/JustEat.StatsD.csproj @@ -24,11 +24,7 @@ - - true - true - true + true - true diff --git a/tests/Benchmark/Benchmark.csproj b/tests/Benchmark/Benchmark.csproj index 8d1d61fe..d182500d 100644 --- a/tests/Benchmark/Benchmark.csproj +++ b/tests/Benchmark/Benchmark.csproj @@ -2,7 +2,7 @@ $(NoWarn);CA1001;CA1014;CA1812;CA1822 Exe - net8.0 + net9.0 true diff --git a/tests/JustEat.StatsD.Tests/Extensions/TimingConstants.cs b/tests/JustEat.StatsD.Tests/Extensions/TimingConstants.cs index 300cd84d..4bddda5c 100644 --- a/tests/JustEat.StatsD.Tests/Extensions/TimingConstants.cs +++ b/tests/JustEat.StatsD.Tests/Extensions/TimingConstants.cs @@ -5,5 +5,5 @@ public static class TimingConstants public const int DelayMilliseconds = 500; public static readonly TimeSpan DeltaFast = TimeSpan.FromMilliseconds(DelayMilliseconds / 4); - public static readonly TimeSpan DeltaSlow = TimeSpan.FromMilliseconds(DelayMilliseconds * 3); + public static readonly TimeSpan DeltaSlow = TimeSpan.FromMilliseconds(DelayMilliseconds * 4); } diff --git a/tests/JustEat.StatsD.Tests/JustEat.StatsD.Tests.csproj b/tests/JustEat.StatsD.Tests/JustEat.StatsD.Tests.csproj index fb2be7c7..0ee24af6 100644 --- a/tests/JustEat.StatsD.Tests/JustEat.StatsD.Tests.csproj +++ b/tests/JustEat.StatsD.Tests/JustEat.StatsD.Tests.csproj @@ -2,7 +2,7 @@ $(NoWarn);CA1014;CA1002;CA1861;CA1707;CA1711;CA2007 JustEat.StatsD - net8.0 + net9.0