From d0ccdbfa0fc3f423a43cfb54313f3050ca3d303c Mon Sep 17 00:00:00 2001 From: Samuele Lorefice Date: Mon, 22 Sep 2025 02:26:07 +0200 Subject: [PATCH] Updated workflow, widened support, now including Net 8, 9 and 10 --- .gitea/workflows/nuget-pkg-build.yml | 9 ++++++--- DISandbox/Program.cs | 2 +- Syrette/Syrette.csproj | 2 +- global.json | 4 ++-- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/nuget-pkg-build.yml b/.gitea/workflows/nuget-pkg-build.yml index a9266ff..6f7c6bc 100644 --- a/.gitea/workflows/nuget-pkg-build.yml +++ b/.gitea/workflows/nuget-pkg-build.yml @@ -11,11 +11,14 @@ jobs: timeout-minutes: 5 steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Setup .NET SDK - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: - dotnet-version: 9.x + dotnet-version: | + 10.x + 9.x + 8.x - name: Build run: dotnet build Syrette -c Release #- name: Test diff --git a/DISandbox/Program.cs b/DISandbox/Program.cs index 0ad32fc..513a1fc 100644 --- a/DISandbox/Program.cs +++ b/DISandbox/Program.cs @@ -39,7 +39,7 @@ class GuidDependantService { } public void LogWithId(string message) { - logService.Log($"[GuidDependantService] {message} (ID: {guidService.Id})"); + logService.Log($"[GuidDependantService] {message} (ID: {guidService?.Id})"); } } diff --git a/Syrette/Syrette.csproj b/Syrette/Syrette.csproj index c110e82..6942ad6 100644 --- a/Syrette/Syrette.csproj +++ b/Syrette/Syrette.csproj @@ -23,7 +23,7 @@ Samuele Lorefice true true - net9.0;net8.0 + net8.0;net9.0;net10.0 true true diff --git a/global.json b/global.json index 93681ff..93dd0dd 100644 --- a/global.json +++ b/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "9.0.0", + "version": "10.0.0", "rollForward": "latestMinor", - "allowPrerelease": false + "allowPrerelease": true } } \ No newline at end of file