diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 3b9fa10..d26ac2f 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -31,6 +31,13 @@ jobs:
# a pull request then we can checkout the head.
fetch-depth: 2
+ # Required for now, due to auto script not using dotnet 9 yet.
+ - name: Setup dotnet
+ uses: actions/setup-dotnet@v4
+ with:
+ dotnet-version: |
+ 9.0.x
+
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
diff --git a/.github/workflows/csharp.yml b/.github/workflows/csharp.yml
index 1fa6cf4..d739551 100644
--- a/.github/workflows/csharp.yml
+++ b/.github/workflows/csharp.yml
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- dotnet: [ '8.0.x' ]
+ dotnet: [ '9.0.x' ]
name: Test dotnet ${{ matrix.dotnet-versions }}
steps:
- uses: actions/checkout@v4
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index d06e67e..3ef63a6 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -11,7 +11,7 @@ jobs:
- name: Set up dotnet.
uses: actions/setup-dotnet@v4
with:
- dotnet-version: '8.0.x'
+ dotnet-version: '9.0.x'
- name: Build
run: dotnet build --configuration Release Personnummer -p:VersionPrefix=${{ github.event.release.tag_name }}
- name: Package
diff --git a/Personnummer.Tests/Personnummer.Tests.csproj b/Personnummer.Tests/Personnummer.Tests.csproj
index 739da45..fcddd2b 100644
--- a/Personnummer.Tests/Personnummer.Tests.csproj
+++ b/Personnummer.Tests/Personnummer.Tests.csproj
@@ -4,9 +4,9 @@
false
- 9
+ latestmajor
- net6.0;net7.0;net8.0
+ net8.0;net9.0
diff --git a/Personnummer/Personnummer.csproj b/Personnummer/Personnummer.csproj
index 5c00563..a3752b4 100644
--- a/Personnummer/Personnummer.csproj
+++ b/Personnummer/Personnummer.csproj
@@ -1,7 +1,7 @@
- net5.0;net7.0;netstandard2.1;net46;net47;net48;net8.0
+ net8.0;net9.0
Personnummer
Johannes Tegnér, Personnummer Contributors
Verify Swedish personal identity numbers.
@@ -12,7 +12,7 @@
true
https://github.com/personnummer/csharp/blob/master/LICENSE
true
- 12
+ latestmajor
MIT
(C) Personnummer & Contributors
Personnummer