Skip to content

Commit 94e9948

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Github Actions] Multiple .NET framework versions
1 parent 426a6a4 commit 94e9948

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/dotnet.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
os: ["windows-2022", "ubuntu-24.04", "macos-14"]
24+
dotnet-version: [8.0.x, 9.0.x]
2425
runs-on: ${{ matrix.os }}
2526
steps:
2627
- uses: actions/checkout@v4
27-
- name: Setup .NET
28+
- name: Setup .NET ${{ matrix.dotnet-version }}
2829
uses: actions/setup-dotnet@v4
2930
with:
30-
dotnet-version: 8.0.x
31+
dotnet-version: ${{ matrix.dotnet-version }}
3132
- name: Restore dependencies
3233
run: dotnet restore
3334
- name: Build

src/algorithm_exercises_csharp/algorithm_exercises_csharp.csproj

+1-1
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+
<TargetFramework>net8.0;net9.0</TargetFramework>
55
<RootNamespace>algorithm_exercises_csharp</RootNamespace>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>

0 commit comments

Comments
 (0)