From 0b5cccd09d18cd372766c67ddd9477ccb036b0aa Mon Sep 17 00:00:00 2001 From: Steven Giesel Date: Fri, 14 Nov 2025 21:22:20 +0100 Subject: [PATCH] feat: Update to dotnet 10 --- .editorconfig | 3 +- .github/workflows/codeql.yml | 1 + .github/workflows/dotnet.yml | 1 + Directory.Packages.props | 33 ++++++++++--------- .../LinkDotNet.Blog.Domain.csproj | 2 +- .../LinkDotNet.Blog.Infrastructure.csproj | 2 +- .../LinkDotNet.Blog.Web.csproj | 2 +- .../LinkDotNet.Blog.IntegrationTests.csproj | 2 +- .../LinkDotNet.Blog.TestUtilities.csproj | 2 +- .../LinkDotNet.Blog.UnitTests.csproj | 2 +- .../LinkDotNet.Blog.CriticalCSS.csproj | 4 +-- 11 files changed, 29 insertions(+), 25 deletions(-) diff --git a/.editorconfig b/.editorconfig index 6c0b3806..a4600c45 100644 --- a/.editorconfig +++ b/.editorconfig @@ -504,4 +504,5 @@ dotnet_diagnostic.S125.severity = none # S125: Sections of code should not be co dotnet_diagnostic.S3459.severity = none # S3459: Unassigned members should be removed dotnet_diagnostic.S3871.severity = none # S3871: Exception types should be "public" dotnet_diagnostic.S1186.severity = none # S1186: Methods should not be empty -dotnet_diagnostic.S6608.severity = none # S6608: Indexing at Count-1 should be used instead of "Enumerable" extension method "Last" \ No newline at end of file +dotnet_diagnostic.S6608.severity = none # S6608: Indexing at Count-1 should be used instead of "Enumerable" extension method "Last" +dotnet_diagnostic.S6966.severity = suggestion # S6966: Await "method" instead \ No newline at end of file diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index b764651d..6d1b8b3f 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -31,6 +31,7 @@ jobs: dotnet-version: | 8.0.x 9.0.x + 10.0.x - name: Initialize CodeQL uses: github/codeql-action/init@v4 diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 6e011c59..72b8b756 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -27,6 +27,7 @@ jobs: dotnet-version: | 8.0.x 9.0.x + 10.0.x - name: Restore dependencies run: dotnet restore - name: Build diff --git a/Directory.Packages.props b/Directory.Packages.props index a1b85278..0ad50c80 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -8,40 +8,41 @@ - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - + - + + - - + + - + - - - + + + - + - + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -55,6 +56,6 @@ - + \ No newline at end of file diff --git a/src/LinkDotNet.Blog.Domain/LinkDotNet.Blog.Domain.csproj b/src/LinkDotNet.Blog.Domain/LinkDotNet.Blog.Domain.csproj index e00f6268..c79cfb53 100644 --- a/src/LinkDotNet.Blog.Domain/LinkDotNet.Blog.Domain.csproj +++ b/src/LinkDotNet.Blog.Domain/LinkDotNet.Blog.Domain.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 enable LinkDotNet.Blog.Domain LinkDotNet.Blog.Domain diff --git a/src/LinkDotNet.Blog.Infrastructure/LinkDotNet.Blog.Infrastructure.csproj b/src/LinkDotNet.Blog.Infrastructure/LinkDotNet.Blog.Infrastructure.csproj index ea9e16e2..ea6489f7 100644 --- a/src/LinkDotNet.Blog.Infrastructure/LinkDotNet.Blog.Infrastructure.csproj +++ b/src/LinkDotNet.Blog.Infrastructure/LinkDotNet.Blog.Infrastructure.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 LinkDotNet.Blog.Infrastructure LinkDotNet.Blog.Infrastructure enable diff --git a/src/LinkDotNet.Blog.Web/LinkDotNet.Blog.Web.csproj b/src/LinkDotNet.Blog.Web/LinkDotNet.Blog.Web.csproj index 69da7b48..5cbf0174 100644 --- a/src/LinkDotNet.Blog.Web/LinkDotNet.Blog.Web.csproj +++ b/src/LinkDotNet.Blog.Web/LinkDotNet.Blog.Web.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 enable diff --git a/tests/LinkDotNet.Blog.IntegrationTests/LinkDotNet.Blog.IntegrationTests.csproj b/tests/LinkDotNet.Blog.IntegrationTests/LinkDotNet.Blog.IntegrationTests.csproj index 74c1aa03..ecc3a43e 100644 --- a/tests/LinkDotNet.Blog.IntegrationTests/LinkDotNet.Blog.IntegrationTests.csproj +++ b/tests/LinkDotNet.Blog.IntegrationTests/LinkDotNet.Blog.IntegrationTests.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 Exe enable false diff --git a/tests/LinkDotNet.Blog.TestUtilities/LinkDotNet.Blog.TestUtilities.csproj b/tests/LinkDotNet.Blog.TestUtilities/LinkDotNet.Blog.TestUtilities.csproj index 81e6fe26..8bea7f44 100644 --- a/tests/LinkDotNet.Blog.TestUtilities/LinkDotNet.Blog.TestUtilities.csproj +++ b/tests/LinkDotNet.Blog.TestUtilities/LinkDotNet.Blog.TestUtilities.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 enable diff --git a/tests/LinkDotNet.Blog.UnitTests/LinkDotNet.Blog.UnitTests.csproj b/tests/LinkDotNet.Blog.UnitTests/LinkDotNet.Blog.UnitTests.csproj index 81065949..5f0ca85c 100644 --- a/tests/LinkDotNet.Blog.UnitTests/LinkDotNet.Blog.UnitTests.csproj +++ b/tests/LinkDotNet.Blog.UnitTests/LinkDotNet.Blog.UnitTests.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 Exe enable false diff --git a/tools/LinkDotNet.Blog.CriticalCSS/LinkDotNet.Blog.CriticalCSS.csproj b/tools/LinkDotNet.Blog.CriticalCSS/LinkDotNet.Blog.CriticalCSS.csproj index 8850032a..a5282240 100644 --- a/tools/LinkDotNet.Blog.CriticalCSS/LinkDotNet.Blog.CriticalCSS.csproj +++ b/tools/LinkDotNet.Blog.CriticalCSS/LinkDotNet.Blog.CriticalCSS.csproj @@ -2,7 +2,7 @@ Exe - net9.0 + net10.0 enable enable @@ -10,7 +10,7 @@ - +