Skip to content

Commit 452fe02

Browse files
golorodenclaude
andauthored
feat: Add multi-targeting for .NET 8, 9, and 10 (#105)
Co-authored-by: Claude <[email protected]>
1 parent 5e83677 commit 452fe02

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

.github/workflows/qa.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,20 @@ concurrency:
88

99
jobs:
1010
qa:
11-
name: QA
11+
name: QA (.NET ${{ matrix.dotnet-version }})
1212
runs-on: ubuntu-latest
1313
timeout-minutes: 15
1414

15+
strategy:
16+
matrix:
17+
dotnet-version: ['8.0.x', '9.0.x', '10.0.x']
18+
1519
steps:
1620
- name: Clone repository
1721
uses: actions/checkout@v5
18-
- name: Use .NET
22+
- name: Use .NET ${{ matrix.dotnet-version }}
1923
uses: actions/setup-dotnet@v5
24+
with:
25+
dotnet-version: ${{ matrix.dotnet-version }}
2026
- name: Run QA
2127
run: make qa

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,18 @@ jobs:
1919
uses: actions/checkout@v5
2020
with:
2121
fetch-depth: "0"
22-
- name: Use .NET
22+
- name: Use .NET 8.0
2323
uses: actions/setup-dotnet@v5
24+
with:
25+
dotnet-version: '8.0.x'
26+
- name: Use .NET 9.0
27+
uses: actions/setup-dotnet@v5
28+
with:
29+
dotnet-version: '9.0.x'
30+
- name: Use .NET 10.0
31+
uses: actions/setup-dotnet@v5
32+
with:
33+
dotnet-version: '10.0.x'
2434
- name: Run QA
2535
run: make qa
2636
- name: Get next version

src/EventSourcingDb.Tests/EventSourcingDb.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
55

66
<ImplicitUsings>false</ImplicitUsings>
77
<Nullable>enable</Nullable>
@@ -14,7 +14,7 @@
1414
<ItemGroup>
1515
<PackageReference Include="coverlet.collector" Version="6.0.4" />
1616
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
17-
<PackageReference Include="System.Linq.Async" Version="6.0.3" />
17+
<PackageReference Include="System.Linq.Async" Version="6.0.3" Condition="$([MSBuild]::GetTargetFrameworkVersion('$(TargetFramework)')) &lt; 10.0" />
1818
<PackageReference Include="xunit" Version="2.9.3" />
1919
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.10"/>
2020
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.10"/>

src/EventSourcingDb/EventSourcingDb.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
55

66
<ImplicitUsings>false</ImplicitUsings>
77
<Nullable>enable</Nullable>

0 commit comments

Comments
 (0)