Skip to content

Commit 8c33d36

Browse files
authored
Added .NET 9 support (#282)
* Add .NET 9 support * Update dotnet-tools * Update github actions in pipeline * Update dependabot.yaml --------- Signed-off-by: David Perfors <[email protected]>
1 parent 0913eb2 commit 8c33d36

File tree

19 files changed

+118
-73
lines changed

19 files changed

+118
-73
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"dotnet-sonarscanner": {
6-
"version": "8.0.3",
6+
"version": "9.0.0",
77
"commands": [
88
"dotnet-sonarscanner"
99
],

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ A clear and concise description of what you expected to happen.
2525

2626
**Background (please complete the following information):**
2727
- Version of library: [e.g. 0.10]
28-
- Version of .NET: [e.g. 7.0]
28+
- Version of .NET: [e.g. 8.0]
2929

3030
**Additional context**
3131
Add any other context about the problem here.

.github/dependabot.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@ updates:
44
directory: "/"
55
groups:
66
all-dependencies:
7-
patterns: "*"
7+
patterns:
8+
- "*"
89
schedule:
910
interval: "daily"
1011
reviewers:
11-
- "dnperfors"
12+
- "dnperfors"
13+
- package-ecosystem: "github-actions"
14+
directory: ".github/"
15+
schedule:
16+
interval: "daily"
17+
reviewers:
18+
- "dnperfors"

.github/workflows/ci.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,21 @@ jobs:
1515
GITHUB_CONTEXT: ${{ toJson(github) }}
1616
run: echo "$GITHUB_CONTEXT"
1717
- name: Checkout
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121
- name: Update Java SDK for SonarQube
22-
uses: actions/setup-java@v1
22+
uses: actions/setup-java@v4
2323
with:
24-
java-version: '17'
24+
distribution: 'microsoft'
25+
java-version: '21'
2526
- name: Setup .NET versions
26-
uses: actions/setup-dotnet@v1
27+
uses: actions/setup-dotnet@v4
2728
with:
2829
dotnet-version: |
2930
6.0.x
3031
8.0.x
32+
9.0.x
3133
include-prerelease: true
3234
- name: Dump .NET info
3335
run: dotnet --info
@@ -52,6 +54,7 @@ jobs:
5254
run: dotnet sonarscanner end -d:sonar.token=${{env.SONAR_TOKEN}}
5355
- name: Check source file format
5456
run: dotnet format --no-restore --verify-no-changes
57+
continue-on-error: true
5558
- name: Pack
5659
run: dotnet pack --output ./artifacts --configuration Release --no-build
5760
- uses: actions/upload-artifact@v4
@@ -70,15 +73,16 @@ jobs:
7073
runs-on: ${{ matrix.os }}
7174
steps:
7275
- name: Checkout
73-
uses: actions/checkout@v2
76+
uses: actions/checkout@v4
7477
- name: Fetch all history for all tags and branches
7578
run: git fetch --prune --unshallow
7679
- name: Setup .NET versions
77-
uses: actions/setup-dotnet@v1
80+
uses: actions/setup-dotnet@v4
7881
with:
7982
dotnet-version: |
8083
6.0.x
8184
8.0.x
85+
9.0.x
8286
include-prerelease: true
8387
- name: Dump .NET info
8488
run: dotnet --info
@@ -95,12 +99,12 @@ jobs:
9599
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
96100
steps:
97101
- name: Checkout
98-
uses: actions/checkout@v2
102+
uses: actions/checkout@v4
99103
- name: Setup .NET versions
100-
uses: actions/setup-dotnet@v1
104+
uses: actions/setup-dotnet@v4
101105
with:
102106
dotnet-version: |
103-
8.0.x
107+
9.0.x
104108
include-prerelease: true
105109
- uses: actions/download-artifact@v4
106110
with:

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
with:
2828
dotnet-version: |
2929
6.0.x
30-
7.0.x
3130
8.0.x
31+
9.0.x
3232
include-prerelease: true
3333
- name: Initialize CodeQL
3434
uses: github/codeql-action/init@v2
@@ -37,6 +37,6 @@ jobs:
3737
languages: csharp
3838
config-file: ./.github/codeql-config.yml
3939
- name: Build source code
40-
run: dotnet build --configuration Release --framework net6.0
40+
run: dotnet build --configuration Release --framework net8.0
4141
- name: Perform CodeQL Analysis
4242
uses: github/codeql-action/analyze@v2

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [0.12] - unplanned
8+
### Added
9+
- Support for .NET 9.0
810

911
## [0.11] - 2024-06-15
1012
### Removed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<LangVersion>12.0</LangVersion>
3+
<LangVersion>13.0</LangVersion>
44
<Nullable>enable</Nullable>
55
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
66
<EnableNETAnalyzers>true</EnableNETAnalyzers>

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020-2022 David Perfors
3+
Copyright (c) 2020-2024 David Perfors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ The following versions are being actively tested and thus supported:
8484
- .NET Framework 4.6, 4.7 and 4.8
8585
- .NET 6.0
8686
- .NET 8.0
87+
- .NET 9.0
8788

8889
These versions are supported as long as Microsoft supports them, we do our best to test and support newer versions as soon as possible.
8990

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "8.0.100",
3+
"version": "9.0.100",
44
"allowPrerelease": false,
55
"rollForward": "latestMajor"
66
}

0 commit comments

Comments
 (0)