Skip to content

Commit b2d4485

Browse files
committed
Adds compile-time support for .NET 10
1 parent 30cb32d commit b2d4485

10 files changed

Lines changed: 23 additions & 18 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup .NET
1818
uses: actions/setup-dotnet@v5
1919
with:
20-
dotnet-version: '8.0.x'
20+
dotnet-version: '10.0.x'
2121

2222
- name: Restore dependencies
2323
run: dotnet restore Auth0.AspNetCore.Authentication.Api.sln

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
needs: [rl-scanner-aspnetcore-api]
3131
uses: ./.github/workflows/nuget-release.yml
3232
with:
33-
dotnet-version: 8.0.x
33+
dotnet-version: 10.0.x
3434
project-paths: "['src/Auth0.AspNetCore.Authentication.Api/Auth0.AspNetCore.Authentication.Api.csproj']"
3535
secrets:
3636
nuget-token: ${{ secrets.NUGET_APIKEY }}
@@ -51,7 +51,7 @@ jobs:
5151
- name: Setup .NET
5252
uses: actions/setup-dotnet@v5
5353
with:
54-
dotnet-version: 8.0.x
54+
dotnet-version: 10.0.x
5555

5656
- name: Install DocFX
5757
run: dotnet tool install -g docfx

.github/workflows/rl-secure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Setup .NET
4242
uses: actions/setup-dotnet@v5
4343
with:
44-
dotnet-version: 8.0.x
44+
dotnet-version: 10.0.x
4545

4646
- name: Create NuGet packages
4747
shell: pwsh

.github/workflows/snyk.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Setup .NET
3838
uses: actions/setup-dotnet@v5
3939
with:
40-
dotnet-version: "8.0.x"
40+
dotnet-version: "10.0.x"
4141

4242
- name: Restore dependencies
4343
run: dotnet restore Auth0.AspNetCore.Authentication.Api.sln

Auth0.AspNetCore.Authentication.Api.Playground.DPoPClient/Auth0.AspNetCore.Authentication.Api.Playground.DPoPClient.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<RootNamespace>Auth0.AspNetCore.Authentication.Api.DPoPClient</RootNamespace>
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.1.2" />
13-
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.1.2" />
14-
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.1.2" />
12+
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.4.0" />
13+
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.4.0" />
14+
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.4.0" />
1515
</ItemGroup>
1616

1717
</Project>

Auth0.AspNetCore.Authentication.Api.Playground/Auth0.AspNetCore.Authentication.Api.Playground.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.17"/>
10+
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.2"/>
1111
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2"/>
1212
</ItemGroup>
1313

src/Auth0.AspNetCore.Authentication.Api/Auth0.AspNetCore.Authentication.Api.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
55

66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
77
<NoWarn>$(NoWarn);1591</NoWarn>
@@ -28,8 +28,9 @@
2828
</PropertyGroup>
2929

3030
<ItemGroup>
31-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.22" />
32-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
31+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.22" Condition="'$(TargetFramework)' == 'net8.0'" />
32+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.2" Condition="'$(TargetFramework)' == 'net10.0'" />
33+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.2" />
3334
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
3435
</ItemGroup>
3536

src/Auth0.AspNetCore.Authentication.Api/Auth0.AspNetCore.Authentication.Api.nuspec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@
3131
<dependencies>
3232
<group targetFramework="net8.0">
3333
<dependency id="Microsoft.AspNetCore.Authentication.JwtBearer" version="8.0.22" exclude="Build,Analyzers" />
34-
<dependency id="Microsoft.Extensions.Logging.Abstractions" version="8.0.0" exclude="Build,Analyzers" />
34+
<dependency id="Microsoft.Extensions.Logging.Abstractions" version="10.0.2" exclude="Build,Analyzers" />
35+
</group>
36+
<group targetFramework="net10.0">
37+
<dependency id="Microsoft.AspNetCore.Authentication.JwtBearer" version="10.0.2" exclude="Build,Analyzers" />
38+
<dependency id="Microsoft.Extensions.Logging.Abstractions" version="10.0.2" exclude="Build,Analyzers" />
3539
</group>
3640
</dependencies>
3741
</metadata>

tests/Auth0.AspNetCore.Authentication.Api.IntegrationTests/Auth0.AspNetCore.Authentication.Api.IntegrationTests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

@@ -13,7 +13,7 @@
1313
<!-- Using v7.2.0 as it's the last version with Apache license. Newer versions use different licensing -->
1414
<PackageReference Include="FluentAssertions" Version="7.2.0"/>
1515
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1"/>
16-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.21" />
16+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.2" />
1717
<PackageReference Include="xunit" Version="2.9.3"/>
1818
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
1919
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

tests/Auth0.AspNetCore.Authentication.Api.UnitTests/Auth0.AspNetCore.Authentication.Api.UnitTests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

0 commit comments

Comments
 (0)