Skip to content

Commit

Permalink
Removed support for older net versions and added dotnet 8 and 9.
Browse files Browse the repository at this point in the history
Updated CI scripts to use dotnet 9.

Signed-off-by: Johannes Tegnér <johannes@jitesoft.com>
  • Loading branch information
Johannestegner committed Dec 31, 2024
1 parent 404d0c4 commit 2a66b18
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Set up dotnet.
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
dotnet-version: 9.0.x
- name: Build
run: dotnet build --configuration Release Organisationsnummer -p:VersionPrefix=${{ github.event.release.tag_name }}
- name: Package
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: [ ' 6.0.x' ]
dotnet: [ '9.0.x' ]
name: Test dotnet ${{ matrix.dotnet-versions }}
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions Organisationsnummer.Tests/Organisationsnummer.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<LangVersion>11</LangVersion>
<LangVersion>default</LangVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Organisationsnummer/Organisationsnummer.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net46;net47;net5.0;net6.0;net7.0;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<Nullable>enable</Nullable>
<LangVersion>11</LangVersion>
<LangVersion>default</LangVersion>
<Company>Organisationsnummer</Company>
<Authors>Johannes Tegnér, Organisationsnummer Contributors</Authors>
<Description>Verify Swedish Organisation numbers.</Description>
Expand Down

0 comments on commit 2a66b18

Please sign in to comment.