From c8db336e220b7e2134dbd17d6c18af88b5e26fda Mon Sep 17 00:00:00 2001 From: Mark Visschers Date: Wed, 11 Mar 2026 22:20:21 +0100 Subject: [PATCH 1/2] adds dotnet 11 as targetframework --- Directory.Build.props | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 5f62e0e..9600d43 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -13,6 +13,7 @@ net8.0; net9.0; net10.0; + net11.0; false @@ -23,8 +24,7 @@ - - - + + \ No newline at end of file From 874d84fc0b4577fd296ed3f744c314986aa26e4a Mon Sep 17 00:00:00 2001 From: Mark Visschers Date: Wed, 11 Mar 2026 22:22:44 +0100 Subject: [PATCH 2/2] adds dotnet 11 to pipelines --- .github/workflows/dotnet.yml | 39 ++++++++-------- .github/workflows/release.yml | 87 ++++++++++++++++++----------------- 2 files changed, 64 insertions(+), 62 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 7793952..9d281eb 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -3,26 +3,27 @@ name: .NET Build on: [push, pull_request, workflow_dispatch] jobs: - build: - runs-on: ubuntu-22.04 + build: + runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-dotnet@v4 - with: - dotnet-version: | - 5.0.x - 6.0.x - 7.0.x - 8.0.x - 9.0.x - 10.0.x + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 5.0.x + 6.0.x + 7.0.x + 8.0.x + 9.0.x + 10.0.x + 11.0.x - - name: Restore dependencies - run: dotnet restore + - name: Restore dependencies + run: dotnet restore - - name: Build - run: dotnet build --configuration Release --no-restore + - name: Build + run: dotnet build --configuration Release --no-restore - - name: Test - run: dotnet test --configuration Release --no-restore --no-build --verbosity normal + - name: Test + run: dotnet test --configuration Release --no-restore --no-build --verbosity normal diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c94fd4f..d483569 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,48 +1,49 @@ name: .NET Release on: - push: - tags: - - "v[0-9]+.[0-9]+.[0-9]+" + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" jobs: - build: - runs-on: ubuntu-22.04 - - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Verify commit exists in origin/main - run: | - git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* - git branch --remote --contains | grep origin/main - - name: Set VERSION variable from tag - run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV - - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: | - 5.0.x - 6.0.x - 7.0.x - 8.0.x - 9.0.x - 10.0.x - - - name: Restore dependencies - run: dotnet restore - - - name: Build - run: dotnet build --configuration Release --no-restore /p:Version=${VERSION} - - - name: Test - run: dotnet test --configuration Release --no-restore --no-build /p:Version=${VERSION} - - - name: Pack - run: dotnet pack --configuration Release --no-restore --no-build /p:Version=${VERSION} --output . - - - name: Push - run: dotnet nuget push *.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_TOKEN} - env: - NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }} + build: + runs-on: ubuntu-22.04 + + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Verify commit exists in origin/main + run: | + git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* + git branch --remote --contains | grep origin/main + - name: Set VERSION variable from tag + run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 5.0.x + 6.0.x + 7.0.x + 8.0.x + 9.0.x + 10.0.x + 11.0.x + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --configuration Release --no-restore /p:Version=${VERSION} + + - name: Test + run: dotnet test --configuration Release --no-restore --no-build /p:Version=${VERSION} + + - name: Pack + run: dotnet pack --configuration Release --no-restore --no-build /p:Version=${VERSION} --output . + + - name: Push + run: dotnet nuget push *.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_TOKEN} + env: + NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}