Skip to content

Commit

Permalink
chore: net8
Browse files Browse the repository at this point in the history
Added net8 target, removed net5 target. Updated tests to run on net 6, 7 and 8. Updated ci scripts. (#84)

Signed-off-by: Johannes Tegnér <[email protected]>
  • Loading branch information
Johannestegner authored Dec 14, 2023
1 parent 76b5556 commit 49863cd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 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: [ '6.0.x' ]
dotnet: [ '8.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: '6.0.x'
dotnet-version: '8.0.x'
- name: Build
run: dotnet build --configuration Release Personnummer -p:VersionPrefix=${{ github.event.release.tag_name }}
- name: Package
Expand Down
3 changes: 2 additions & 1 deletion Personnummer.Tests/Personnummer.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>

<IsPackable>false</IsPackable>

<LangVersion>9</LangVersion>

<TargetFrameworks>net6.0;net7.0;net8.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>net46;net47;net48;net5.0;net6.0;net7.0;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net5.0;net7.0;netstandard2.1;net46;net47;net48;net8.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>11</LangVersion>
<LangVersion>12</LangVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Copyright>(C) Personnummer &amp; Contributors</Copyright>
<Title>Personnummer</Title>
Expand Down

0 comments on commit 49863cd

Please sign in to comment.