Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Commit f6fd541

Browse files
committed
chore: Update samples projects with .NET8
1 parent 88fbdf5 commit f6fd541

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

samples/PowerUtils.AspNetCore.ErrorHandler.Samples/Extensions/BasicAuthentication.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using Microsoft.AspNetCore.Authentication.JwtBearer;
2-
using Microsoft.AspNetCore.Authorization;
1+
using Microsoft.AspNetCore.Authorization;
32

43
namespace PowerUtils.AspNetCore.ErrorHandler.Samples.Extensions
54
{

samples/PowerUtils.AspNetCore.ErrorHandler.Samples/Samples.csproj

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<PropertyGroup>
55
<OutputType>Exe</OutputType>
6-
<TargetFrameworks>net7.0;net6.0;net5.0</TargetFrameworks>
6+
<TargetFrameworks>net8.0;net7.0;net6.0;net5.0</TargetFrameworks>
77

88
<RootNamespace>PowerUtils.AspNetCore.ErrorHandler.Samples</RootNamespace>
99
<AssemblyName>PowerUtils.AspNetCore.ErrorHandler.Samples</AssemblyName>
@@ -24,11 +24,15 @@
2424
<PackageReference Include="System.Text.Json" Version="8.0.4" /> <!-- Update directly to fix vulnerability https://github.com/advisories/GHSA-hh2w-p6rv-4g7w -->
2525
</ItemGroup>
2626

27+
28+
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
29+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.7" />
30+
</ItemGroup>
2731
<ItemGroup Condition=" '$(TargetFramework)' == 'net7.0' ">
28-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.16" />
32+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.20" />
2933
</ItemGroup>
3034
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
31-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.27" allowedVersions="[6.0.27]" />
35+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.32" allowedVersions="[6.0.32]" />
3236
</ItemGroup>
3337
<ItemGroup Condition=" '$(TargetFramework)' == 'net5.0' ">
3438
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="5.0.17" allowedVersions="[5.0.17]" />

0 commit comments

Comments
 (0)