Skip to content

Commit 387d9df

Browse files
authored
feat: support .NET 10 and removed .NET6, 7 (#23)
* chore: update .NET version to 10.x in workflow files * Update target frameworks and package versions in test projects * refactor: update PublicApiCheckTest to ignore target framework specific attributes
1 parent ef4fbce commit 387d9df

File tree

13 files changed

+183
-394
lines changed

13 files changed

+183
-394
lines changed

.github/workflows/release-github.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@ jobs:
2727
uses: actions/setup-dotnet@v4
2828
with:
2929
dotnet-version: |
30+
10.x
3031
9.x
3132
8.x
32-
7.x
33-
6.x
3433
cache: true
3534
cache-dependency-path: '**/packages.lock.json'
3635

.github/workflows/release.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ jobs:
1616
uses: actions/setup-dotnet@v4
1717
with:
1818
dotnet-version: |
19+
10.x
1920
9.x
2021
8.x
21-
7.x
22-
6.x
2322
cache: true
2423
cache-dependency-path: '**/packages.lock.json'
2524

.github/workflows/sample-deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
fetch-depth: 0
2020

2121
- name: Setup .NET
22-
uses: actions/setup-dotnet@v3
22+
uses: actions/setup-dotnet@v4
2323
with:
24-
dotnet-version: '9.0.x'
24+
dotnet-version: '10.0.x'
2525

2626
- name: Restore dependencies
2727
run: dotnet restore

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
uses: actions/setup-dotnet@v4
2626
with:
2727
dotnet-version: |
28+
10.x
2829
9.x
2930
8.x
3031
cache: true

example/BlazorLocalTimeSample/BlazorLocalTimeSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
22
<PropertyGroup>
3-
<TargetFramework>net9.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
44
<Nullable>enable</Nullable>
55
<ImplicitUsings>enable</ImplicitUsings>
66
</PropertyGroup>
Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22
<PropertyGroup>
3-
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
3+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
44
<Nullable>enable</Nullable>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<RootNamespace>BlazorLocalTime</RootNamespace>
77
</PropertyGroup>
8-
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
9-
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.*" />
10-
<PackageReference Include="Microsoft.Bcl.TimeProvider" Version="*" />
11-
<PackageReference
12-
Include="Microsoft.Extensions.DependencyInjection.Abstractions"
13-
Version="6.*"
14-
/>
15-
</ItemGroup>
16-
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
17-
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.*" />
18-
<PackageReference Include="Microsoft.Bcl.TimeProvider" Version="*" />
19-
<PackageReference
20-
Include="Microsoft.Extensions.DependencyInjection.Abstractions"
21-
Version="7.*"
22-
/>
23-
</ItemGroup>
248
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
259
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.*" />
2610
<PackageReference
@@ -35,4 +19,11 @@
3519
Version="9.*"
3620
/>
3721
</ItemGroup>
22+
<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
23+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="10.0.0-rc.1.25451.107" />
24+
<PackageReference
25+
Include="Microsoft.Extensions.DependencyInjection.Abstractions"
26+
Version="10.0.0-rc.1.25451.107"
27+
/>
28+
</ItemGroup>
3829
</Project>

0 commit comments

Comments
 (0)