Skip to content

Commit c808109

Browse files
Add support for .NET 9.0 in project file (#744)
* Add support for .NET 9.0 in project file Updated TargetFrameworks in MiniExcelLibs.csproj to include 'net9.0', expanding support beyond net45, netstandard2.0, and net8.0. * Update workflows for .NET 9 - Added setup for .NET 9.0.x in `codeql-analysis.yml`. - Added setup for .NET 9.0.x in `dotnet.yml`.
1 parent c2ef412 commit c808109

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ jobs:
3939
steps:
4040
- name: Checkout repository
4141
uses: actions/checkout@v4
42+
43+
- name: Setup .NET 9
44+
uses: actions/setup-dotnet@v1
45+
with:
46+
dotnet-version: 9.0.x
4247

4348
# Initializes the CodeQL tools for scanning.
4449
- name: Initialize CodeQL

.github/workflows/dotnet.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v4
16-
- name: Setup .NET
16+
- name: Setup .NET 8
1717
uses: actions/setup-dotnet@v1
1818
with:
1919
dotnet-version: 8.0.x
20+
- name: Setup .NET 9
21+
uses: actions/setup-dotnet@v1
22+
with:
23+
dotnet-version: 9.0.x
2024
- name: Restore dependencies
2125
run: dotnet restore
2226
env:

src/MiniExcel/MiniExcelLibs.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net45;netstandard2.0;net8.0;</TargetFrameworks>
3+
<TargetFrameworks>net45;netstandard2.0;net8.0;net9.0</TargetFrameworks>
44
<Version>1.39.0</Version>
55
</PropertyGroup>
66
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">

0 commit comments

Comments
 (0)