Skip to content

Commit f80f082

Browse files
Add support for .NET 10 (#56)
- Multi-target net10.0 in MudBlazor.StaticInput library - Update package references for net10.0 target - Update unit tests to target net10.0 exclusively - Update GitHub Actions workflows to use .NET 10 SDK - Update Playwright installation path in CI workflow for net10.0
1 parent a70be4b commit f80f082

5 files changed

Lines changed: 13 additions & 8 deletions

File tree

.github/workflows/build-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup .NET
2323
uses: actions/setup-dotnet@v4
2424
with:
25-
dotnet-version: '9.0.x'
25+
dotnet-version: '10.0.x'
2626

2727
- name: Build
2828
run: dotnet build ./tests/StaticInput.UnitTests/StaticInput.UnitTests.csproj
@@ -31,7 +31,7 @@ jobs:
3131
run: dotnet tool update --global PowerShell
3232

3333
- name: Install playwright browsers
34-
run: pwsh ./tests/StaticInput.UnitTests/bin/Debug/net9.0/playwright.ps1 install --with-deps
34+
run: pwsh ./tests/StaticInput.UnitTests/bin/Debug/net10.0/playwright.ps1 install --with-deps
3535

3636
- name: Run tests
3737
run: >

.github/workflows/deploy-nuget-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- name: Setup dotnet version
6464
uses: actions/setup-dotnet@v4
6565
with:
66-
dotnet-version: 9.0.x
66+
dotnet-version: 10.0.x
6767
- name: Pack nuget package
6868
run: dotnet pack -c Release --output nupkgs /p:PackageVersion=${{ needs.get-version.outputs.VERSION }} /p:AssemblyVersion=${{ needs.get-version.outputs.ASSEMBLY_VERSION }} /p:Version=${{ needs.get-version.outputs.VERSION }}
6969
working-directory: ./src

src/MudBlazor.StaticInput.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Company>Ophois</Company>
@@ -31,8 +31,13 @@
3131
</ItemGroup>
3232

3333
<ItemGroup Condition=" '$(TargetFramework)' == 'net9.0' ">
34-
<PackageReference Include="Microsoft.AspNetCore.Components" Version="9.0.*" />
35-
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.*" />
34+
<PackageReference Include="Microsoft.AspNetCore.Components" Version="9.0.*" />
35+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.*" />
36+
</ItemGroup>
37+
38+
<ItemGroup Condition=" '$(TargetFramework)' == 'net10.0' ">
39+
<PackageReference Include="Microsoft.AspNetCore.Components" Version="10.0.*" />
40+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="10.0.*" />
3641
</ItemGroup>
3742

3843
<ItemGroup>

tests/StaticInput.UnitTests.Viewer/StaticInput.UnitTests.Viewer.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.Web">
22

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

tests/StaticInput.UnitTests/StaticInput.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>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

0 commit comments

Comments
 (0)