Skip to content

Commit

Permalink
feat: upgrade to .NET 8
Browse files Browse the repository at this point in the history
  • Loading branch information
VonDerBeck committed Mar 4, 2024
1 parent 9a0c3bc commit 8e06998
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/analyze.yml
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Setup
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 7.x
dotnet-version: 8.x

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -12,13 +12,13 @@ jobs:
timeout-minutes: 5
steps:
- name: Pull zeebe
run: docker pull camunda/zeebe:8.3.0
run: docker pull camunda/zeebe:8.4.0
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 7.x
dotnet-version: 8.x
- name: Build
run: dotnet build --configuration Release
- name: Test
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Expand Up @@ -9,13 +9,13 @@ jobs:
timeout-minutes: 5
steps:
- name: Pull zeebe
run: docker pull camunda/zeebe:8.3.0
run: docker pull camunda/zeebe:8.4.0
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 7.x
dotnet-version: 8.x
- name: Verify commit exists in origin/main
run: |
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/preview-deploy.yml
Expand Up @@ -9,13 +9,13 @@ jobs:
timeout-minutes: 5
steps:
- name: Pull zeebe
run: docker pull camunda/zeebe:8.3.0
run: docker pull camunda/zeebe:8.4.0
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 7.x
dotnet-version: 8.x
- name: Set VERSION variable from tag
run: echo "VERSION=${GITHUB_REF/refs\/tags\/}" >> $GITHUB_ENV
- name: Pack
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -21,8 +21,8 @@ Extension for the C# Zeebe Client. Credits for the base work still belong to htt

Since version 2.1.3:

* [.NET 6](https://dotnet.microsoft.com/en-us/download/dotnet/6.0) / [.NET 7](https://dotnet.microsoft.com/en-us/download/dotnet/7.0)
* [Zeebe C# client 2.3.0 release](https://www.nuget.org/packages/zb-client/)
* [.NET 6](https://dotnet.microsoft.com/en-us/download/dotnet/6.0) / [.NET 7](https://dotnet.microsoft.com/en-us/download/dotnet/7.0) / [.NET 8](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)
* [Zeebe C# client 2.5.0 release](https://www.nuget.org/packages/zb-client/)
* [Zeebe 8.x release](https://github.com/zeebe-io/zeebe/releases/)

For older .NET versions please use the 1.x.x release of this extension based on Zeebe C# client 1.3.0 release.
Expand Down
9 changes: 8 additions & 1 deletion src/Zeebe.Client.Accelerator/Zeebe.Client.Accelerator.csproj
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<Authors>Gunnar von der Beck</Authors>
<Description>
This project is an extension of the zb-client (https://www.nuget.org/packages/zb-client/).
Expand Down Expand Up @@ -29,6 +29,13 @@ So this is our version of a good Bootstrap Extension for the C# Zeebe Client. Cr
<Version>2.1.1</Version>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="8.0.0" />
<PackageReference Include="zb-client" Version="2.5.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
Expand Down

0 comments on commit 8e06998

Please sign in to comment.