Skip to content

Commit 2fa28da

Browse files
committed
feat: .NET 8
BREAKING CHANGE
1 parent ba5e1cb commit 2fa28da

File tree

6 files changed

+38
-39
lines changed

6 files changed

+38
-39
lines changed
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
55
</PropertyGroup>
66

77

88
<ItemGroup>
99
<PackageReference Include="Bogus" Version="34.0.2" />
10-
<PackageReference Include="NetDevPack.Security.Jwt.AspNetCore" Version="7.0.0" />
11-
<PackageReference Include="NetDevPack.Security.Jwt.Core" Version="7.0.0" />
12-
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.25.0" />
10+
<PackageReference Include="NetDevPack.Security.Jwt.AspNetCore" Version="8.1.1" />
11+
<PackageReference Include="NetDevPack.Security.Jwt.Core" Version="8.1.1" />
12+
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.3.1" />
1313
</ItemGroup>
1414

1515
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
16-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.11" />
16+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.26" />
1717
</ItemGroup>
1818
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
19-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.0" />
19+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.15" />
20+
</ItemGroup>
21+
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
22+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.1" />
2023
</ItemGroup>
2124

2225
</Project>
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
55
</PropertyGroup>
66

77

88
<ItemGroup>
99
<ProjectReference Include="..\..\src\NetDevPack.Security.JwtExtensions\NetDevPack.Security.JwtExtensions.csproj" />
1010
</ItemGroup>
1111

12-
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
13-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.11" />
14-
</ItemGroup>
15-
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
16-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.0" />
17-
</ItemGroup>
18-
1912
</Project>

src/NetDevPack.Security.JwtExtensions/NetDevPack.Security.JwtExtensions.csproj

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net6.0;net7.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net6.0;net7.0;net8.0</TargetFrameworks>
55
<Version>3.1.0</Version>
66
<Authors>Bruno Brito</Authors>
77
<PackageIconUrl>https://raw.githubusercontent.com/NetDevPack/NetDevPack/master/assets/IconNuget.png</PackageIconUrl>
@@ -15,17 +15,20 @@
1515
</PropertyGroup>
1616

1717
<ItemGroup>
18-
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.25.0" />
19-
<PackageReference Include="System.Text.Json" Version="7.0.0" />
18+
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.3.1" />
19+
<PackageReference Include="System.Text.Json" Version="8.0.1" />
2020
</ItemGroup>
2121

2222
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
2323
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="2.2.0" />
2424
</ItemGroup>
2525
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
26-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.11" />
26+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.26" />
2727
</ItemGroup>
2828
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
29-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.0" />
29+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.15" />
30+
</ItemGroup>
31+
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
32+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.1" />
3033
</ItemGroup>
3134
</Project>
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
55
</PropertyGroup>
66

77

@@ -10,9 +10,12 @@
1010
</ItemGroup>
1111

1212
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
13-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.11" />
13+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.26" />
1414
</ItemGroup>
1515
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
16-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.0" />
16+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.15" />
17+
</ItemGroup>
18+
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
19+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.1" />
1720
</ItemGroup>
1821
</Project>

tests/NetDevPack.Security.JwtExtensions.ApiTests/Program.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
51
using Microsoft.AspNetCore.Hosting;
6-
using Microsoft.Extensions.Configuration;
72
using Microsoft.Extensions.Hosting;
8-
using Microsoft.Extensions.Logging;
93

104
namespace NetDevPack.Security.JwtExtensions.ApiTests
115
{
Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
55
<LangVersion>10.0</LangVersion>
66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Bogus" Version="34.0.2" />
11-
<PackageReference Include="FluentAssertions" Version="6.8.0" />
12-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
13-
<PackageReference Include="NetDevPack.Security.Jwt.AspNetCore" Version="7.0.0" />
14-
<PackageReference Include="NetDevPack.Security.Jwt.Store.FileSystem" Version="7.0.0" />
15-
<PackageReference Include="xunit" Version="2.4.2" />
16-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
10+
<PackageReference Include="Bogus" Version="35.4.0" />
11+
<PackageReference Include="FluentAssertions" Version="6.12.0" />
12+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
13+
<PackageReference Include="NetDevPack.Security.Jwt.AspNetCore" Version="8.1.1" />
14+
<PackageReference Include="NetDevPack.Security.Jwt.Store.FileSystem" Version="8.1.1" />
15+
<PackageReference Include="xunit" Version="2.6.6" />
16+
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
1717
<PrivateAssets>all</PrivateAssets>
1818
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1919
</PackageReference>
20-
<PackageReference Include="Bogus.Tools.Analyzer" Version="34.0.2">
20+
<PackageReference Include="Bogus.Tools.Analyzer" Version="35.4.0">
2121
<PrivateAssets>all</PrivateAssets>
2222
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2323
</PackageReference>
@@ -28,10 +28,13 @@
2828
</ItemGroup>
2929

3030
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
31-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.11" />
31+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.26" />
3232
</ItemGroup>
3333
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
34-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.0" />
34+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.15" />
35+
</ItemGroup>
36+
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
37+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.1" />
3538
</ItemGroup>
3639

3740
</Project>

0 commit comments

Comments
 (0)