From 4fe47833bb07becd48e580e1d43811658a6206d9 Mon Sep 17 00:00:00 2001 From: Tomi Parviainen Date: Sun, 19 Nov 2023 15:22:36 +0200 Subject: [PATCH] Update TFM to net8.0 and bump NuGet packages (#172) --- .github/workflows/build.yml | 2 +- .github/workflows/docfx.yml | 2 +- .github/workflows/nuget.yml | 2 +- .github/workflows/tests.yml | 2 +- build/build.ps1 | 6 ++-- build/version.txt | 2 +- src/ClashOfClans.App/ClashOfClans.App.csproj | 4 +-- .../ClashOfClans.Blazor.csproj | 2 +- .../ClashOfClans.Models.csproj | 4 +-- .../ClashOfClans.Tests.Integration.csproj | 6 ++-- .../ClashOfClans.Tests.Unit.csproj | 2 +- src/ClashOfClans/ClashOfClans.csproj | 8 ++--- src/ClashOfClans/ClashOfClans.nuspec | 32 ++++++++++++------- 13 files changed, 41 insertions(+), 33 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c3c8c513..faea325b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: with: dotnet-version: | 6.0.x - 7.0.x + 8.0.x - name: Build with dotnet run: dotnet build ./src/ClashOfClans.sln diff --git a/.github/workflows/docfx.yml b/.github/workflows/docfx.yml index 723c8b41..ee59a2f0 100644 --- a/.github/workflows/docfx.yml +++ b/.github/workflows/docfx.yml @@ -22,7 +22,7 @@ jobs: token: ${{ secrets.DOCFX_API_KEY }} - uses: actions/setup-dotnet@v3 with: - dotnet-version: "7.0.x" + dotnet-version: "8.0.x" - name: Build with dotnet run: dotnet build ./src/ClashOfClans/ClashOfClans.csproj diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index 9619da4c..46b704c5 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-dotnet@v3 with: - dotnet-version: "7.0.x" + dotnet-version: "8.0.x" - name: Setup NuGet CLI run: choco install nuget.commandline diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index be535459..ec7aacbc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,7 +21,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: "7.0.x" + dotnet-version: "8.0.x" - name: Unit Tests working-directory: src diff --git a/build/build.ps1 b/build/build.ps1 index 4331efdf..d4a040b1 100644 --- a/build/build.ps1 +++ b/build/build.ps1 @@ -2,9 +2,9 @@ $version = Get-PackageVersion $packageId = "ClashOfClans" -$basePath = "..\src\ClashOfClans\" -$project = $basePath + $packageId + ".csproj" -$nuspec = $basePath + $packageId + ".nuspec" +$basePath = Join-Path ".." "src" "ClashOfClans" +$project = Join-Path $basePath "$packageId.csproj" +$nuspec = Join-Path $basePath "$packageId.nuspec" $nupkg = "$packageId.$version.nupkg" $configuration = "Release" $commit = Get-CommitHash diff --git a/build/version.txt b/build/version.txt index c6520dff..b340b728 100644 --- a/build/version.txt +++ b/build/version.txt @@ -6,4 +6,4 @@ # Patch: Backwards compatible bug fixes only # -Suffix (optional): a hyphen followed by a string denoting a pre-release version (rc1, rc2, etc.) -8.8.1 +8.8.2-rc2 diff --git a/src/ClashOfClans.App/ClashOfClans.App.csproj b/src/ClashOfClans.App/ClashOfClans.App.csproj index 80fb8927..3036944a 100644 --- a/src/ClashOfClans.App/ClashOfClans.App.csproj +++ b/src/ClashOfClans.App/ClashOfClans.App.csproj @@ -2,13 +2,13 @@ Exe - net7.0 + net8.0 latest - + diff --git a/src/ClashOfClans.Blazor/ClashOfClans.Blazor.csproj b/src/ClashOfClans.Blazor/ClashOfClans.Blazor.csproj index 15b937ee..338276b8 100644 --- a/src/ClashOfClans.Blazor/ClashOfClans.Blazor.csproj +++ b/src/ClashOfClans.Blazor/ClashOfClans.Blazor.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 diff --git a/src/ClashOfClans.Models/ClashOfClans.Models.csproj b/src/ClashOfClans.Models/ClashOfClans.Models.csproj index 04d7de9b..4fbf741e 100644 --- a/src/ClashOfClans.Models/ClashOfClans.Models.csproj +++ b/src/ClashOfClans.Models/ClashOfClans.Models.csproj @@ -1,13 +1,13 @@  - netstandard2.0;netstandard2.1;net6.0;net7.0 + netstandard2.0;netstandard2.1;net6.0;net7.0;net8.0 8.0 true - + diff --git a/src/ClashOfClans.Tests.Integration/ClashOfClans.Tests.Integration.csproj b/src/ClashOfClans.Tests.Integration/ClashOfClans.Tests.Integration.csproj index 71e36a88..a5152fb3 100644 --- a/src/ClashOfClans.Tests.Integration/ClashOfClans.Tests.Integration.csproj +++ b/src/ClashOfClans.Tests.Integration/ClashOfClans.Tests.Integration.csproj @@ -1,13 +1,13 @@ - net7.0 + net8.0 false - - + + diff --git a/src/ClashOfClans.Tests.Unit/ClashOfClans.Tests.Unit.csproj b/src/ClashOfClans.Tests.Unit/ClashOfClans.Tests.Unit.csproj index 2a90c829..1d82e487 100644 --- a/src/ClashOfClans.Tests.Unit/ClashOfClans.Tests.Unit.csproj +++ b/src/ClashOfClans.Tests.Unit/ClashOfClans.Tests.Unit.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 false diff --git a/src/ClashOfClans/ClashOfClans.csproj b/src/ClashOfClans/ClashOfClans.csproj index 9bb70c8b..4e4ab29c 100644 --- a/src/ClashOfClans/ClashOfClans.csproj +++ b/src/ClashOfClans/ClashOfClans.csproj @@ -1,7 +1,7 @@  - netstandard2.0;netstandard2.1;net6.0;net7.0 + netstandard2.0;netstandard2.1;net6.0;net7.0;net8.0 8.0 true ClashOfClans.nuspec @@ -22,9 +22,9 @@ - - - + + + diff --git a/src/ClashOfClans/ClashOfClans.nuspec b/src/ClashOfClans/ClashOfClans.nuspec index 2630c737..4a4eb64f 100644 --- a/src/ClashOfClans/ClashOfClans.nuspec +++ b/src/ClashOfClans/ClashOfClans.nuspec @@ -16,24 +16,29 @@ - - - + + + - - - + + + - - - + + + - - - + + + + + + + + @@ -52,5 +57,8 @@ + + +