From fee729533bb18cf181809b45eb97355f7a8b755d Mon Sep 17 00:00:00 2001 From: martincostello Date: Tue, 13 Feb 2024 22:32:08 +0000 Subject: [PATCH] Update to .NET 9 preview 1 Update to preview 1 of .NET 9. --- .vsconfig | 2 +- Directory.Build.props | 4 ++-- benchmark.ps1 | 4 ---- build.ps1 | 4 ---- global.json | 2 +- src/ProjectEuler/ProjectEuler.csproj | 2 +- tests/ProjectEuler.Benchmarks/ProjectEuler.Benchmarks.csproj | 2 +- tests/ProjectEuler.Tests/ProjectEuler.Tests.csproj | 2 +- 8 files changed, 7 insertions(+), 15 deletions(-) diff --git a/.vsconfig b/.vsconfig index a991ed17..8114a325 100644 --- a/.vsconfig +++ b/.vsconfig @@ -3,7 +3,7 @@ "components": [ "Microsoft.VisualStudio.Component.CoreEditor", "Microsoft.VisualStudio.Workload.CoreEditor", - "Microsoft.NetCore.Component.Runtime.8.0", + "Microsoft.NetCore.Component.Runtime.9.0", "Microsoft.NetCore.Component.SDK", "Microsoft.VisualStudio.Component.Roslyn.Compiler", "Microsoft.VisualStudio.Component.Roslyn.LanguageServices" diff --git a/Directory.Build.props b/Directory.Build.props index a3f8502d..0ed4d7f8 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -20,7 +20,7 @@ latest true en-US - $(NoWarn);CS1591 + $(NoWarn);CA1515;CS1591 enable Apache-2.0 https://github.com/martincostello/project-euler @@ -36,7 +36,7 @@ snupkg true true - 8.0.0 + 9.0.0 diff --git a/benchmark.ps1 b/benchmark.ps1 index 9062620c..cf6649a5 100755 --- a/benchmark.ps1 +++ b/benchmark.ps1 @@ -5,10 +5,6 @@ param( $ErrorActionPreference = "Stop" $ProgressPreference = "SilentlyContinue" -if ($null -eq $env:MSBUILDTERMINALLOGGER) { - $env:MSBUILDTERMINALLOGGER = "auto" -} - $solutionPath = $PSScriptRoot $sdkFile = Join-Path $solutionPath "global.json" diff --git a/build.ps1 b/build.ps1 index 0a2acc1a..c411c3a3 100755 --- a/build.ps1 +++ b/build.ps1 @@ -1,9 +1,5 @@ #! /usr/bin/env pwsh -if ($null -eq $env:MSBUILDTERMINALLOGGER) { - $env:MSBUILDTERMINALLOGGER = "auto" -} - $Configuration = "Release" $ErrorActionPreference = "Stop" $ProgressPreference = "SilentlyContinue" diff --git a/global.json b/global.json index 36dbe490..b207f0ea 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "8.0.204", + "version": "9.0.100-preview.1.24101.2", "allowPrerelease": false, "rollForward": "latestMajor" } diff --git a/src/ProjectEuler/ProjectEuler.csproj b/src/ProjectEuler/ProjectEuler.csproj index ce1a1303..17d11833 100644 --- a/src/ProjectEuler/ProjectEuler.csproj +++ b/src/ProjectEuler/ProjectEuler.csproj @@ -7,7 +7,7 @@ true true MartinCostello.ProjectEuler - net8.0 + net9.0 diff --git a/tests/ProjectEuler.Benchmarks/ProjectEuler.Benchmarks.csproj b/tests/ProjectEuler.Benchmarks/ProjectEuler.Benchmarks.csproj index bbdb21a4..0ab2c990 100644 --- a/tests/ProjectEuler.Benchmarks/ProjectEuler.Benchmarks.csproj +++ b/tests/ProjectEuler.Benchmarks/ProjectEuler.Benchmarks.csproj @@ -6,7 +6,7 @@ Exe MartinCostello.ProjectEuler.Benchmarks Benchmarks for ProjectEuler. - net8.0 + net9.0 diff --git a/tests/ProjectEuler.Tests/ProjectEuler.Tests.csproj b/tests/ProjectEuler.Tests/ProjectEuler.Tests.csproj index 540684cc..495611c2 100644 --- a/tests/ProjectEuler.Tests/ProjectEuler.Tests.csproj +++ b/tests/ProjectEuler.Tests/ProjectEuler.Tests.csproj @@ -4,7 +4,7 @@ $(NoWarn);CA1707;CA1812;CA1861;CA2007;SA1600 MartinCostello.ProjectEuler Tests for ProjectEuler. - net8.0 + net9.0