Skip to content

Commit 5f91cf5

Browse files
committed
Adding .NET 8 to tests targets
1 parent 722cc01 commit 5f91cf5

File tree

6 files changed

+24
-1
lines changed

6 files changed

+24
-1
lines changed

.github/workflows/cd-aspnet-extensions.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
uses: actions/setup-dotnet@v1
2525
with:
2626
dotnet-version: '6.0.x'
27+
- name: Setup .NET 8.0 SDK
28+
uses: actions/setup-dotnet@v1
29+
with:
30+
dotnet-version: '8.0.x'
2731
- name: Restore
2832
run: dotnet restore
2933
- name: Build

.github/workflows/cd-azure-extensions.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
uses: actions/setup-dotnet@v1
2525
with:
2626
dotnet-version: '6.0.x'
27+
- name: Setup .NET 8.0 SDK
28+
uses: actions/setup-dotnet@v1
29+
with:
30+
dotnet-version: '8.0.x'
2731
- name: Restore
2832
run: dotnet restore
2933
- name: Build

.github/workflows/cd-net-http.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
uses: actions/setup-dotnet@v1
2525
with:
2626
dotnet-version: '6.0.x'
27+
- name: Setup .NET 8.0 SDK
28+
uses: actions/setup-dotnet@v1
29+
with:
30+
dotnet-version: '8.0.x'
2731
- name: Restore
2832
run: dotnet restore
2933
- name: Build

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
uses: actions/setup-dotnet@v1
2525
with:
2626
dotnet-version: '6.0.x'
27+
- name: Setup .NET 8.0 SDK
28+
uses: actions/setup-dotnet@v1
29+
with:
30+
dotnet-version: '8.0.x'
2731
- name: Restore
2832
run: dotnet restore
2933
- name: Build

.github/workflows/gh-pages.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
uses: actions/setup-dotnet@v1
1919
with:
2020
dotnet-version: '6.0.x'
21+
- name: Setup .NET 8.0 SDK
22+
uses: actions/setup-dotnet@v1
23+
with:
24+
dotnet-version: '8.0.x'
2125
- name: Restore
2226
run: dotnet restore
2327
- name: Build

test/Test.Lib.Net.Http.WebPush/Test.Lib.Net.Http.WebPush.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
3-
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
3+
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0;net8.0</TargetFrameworks>
44
<IsPackable>false</IsPackable>
55
</PropertyGroup>
66
<ItemGroup>
@@ -20,6 +20,9 @@
2020
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
2121
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.0" />
2222
</ItemGroup>
23+
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
24+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.0" />
25+
</ItemGroup>
2326
<ItemGroup>
2427
<ProjectReference Include="..\..\src\Lib.Net.Http.WebPush\Lib.Net.Http.WebPush.csproj" />
2528
</ItemGroup>

0 commit comments

Comments
 (0)