Skip to content

Commit

Permalink
Updated project to build for .net 8 and 9. Updated ci to use .net 9.
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Tegnér <johannes@jitesoft.com>
  • Loading branch information
Johannestegner committed Dec 29, 2024
1 parent dde36b3 commit ef44a90
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/csharp.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: [ '8.0.x' ]
dotnet: [ '9.0.x' ]
name: Test dotnet ${{ matrix.dotnet-versions }}
steps:
- uses: actions/checkout@v4
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: '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
Expand Down
4 changes: 2 additions & 2 deletions Personnummer.Tests/Personnummer.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

<IsPackable>false</IsPackable>

<LangVersion>9</LangVersion>
<LangVersion>latestmajor</LangVersion>

<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
</PropertyGroup>

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

<PropertyGroup>
<TargetFrameworks>net5.0;net7.0;netstandard2.1;net46;net47;net48;net8.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<Company>Personnummer</Company>
<Authors>Johannes Tegnér, Personnummer Contributors</Authors>
<Description>Verify Swedish personal identity numbers.</Description>
Expand All @@ -12,7 +12,7 @@
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicense>https://github.com/personnummer/csharp/blob/master/LICENSE</PackageLicense>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<LangVersion>12</LangVersion>
<LangVersion>latestmajor</LangVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Copyright>(C) Personnummer &amp; Contributors</Copyright>
<Title>Personnummer</Title>
Expand Down

0 comments on commit ef44a90

Please sign in to comment.