Skip to content

Commit ba03ade

Browse files
committed
Update to net 10
1 parent 55a084a commit ba03ade

File tree

15 files changed

+32
-31
lines changed

15 files changed

+32
-31
lines changed

.github/workflows/ChessChampion.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
env:
1717
AZURE_WEBAPP_NAME: ChessChampion
1818
AZURE_WEBAPP_PACKAGE_PATH: ChessChampion.Server/publish
19-
DOTNET_CORE_VERSION: 9.0.x
19+
DOTNET_CORE_VERSION: 10.0.x
2020
WORKING_DIRECTORY: ChessChampion.Server
2121
steps:
2222
- name: Azure Login

ChessChampion.Client/ChessChampion.Client.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<NoDefaultLaunchSettingsFile>true</NoDefaultLaunchSettingsFile>
88
<StaticWebAssetProjectMode>Default</StaticWebAssetProjectMode>
9+
<BlazorDisableThrowNavigationException>true</BlazorDisableThrowNavigationException>
910
</PropertyGroup>
1011

1112
<ItemGroup>
12-
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="9.0.8" />
13-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.8" />
13+
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="10.0.0-preview.7.25380.108" />
14+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.0-preview.7.25380.108" />
1415
<PackageReference Include="Microsoft.Extensions.Http.Resilience" Version="9.8.0" />
1516
</ItemGroup>
1617

ChessChampion.Client/Pages/Home.razor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#main-logo {
22
cursor: pointer;
3-
background-image: url("horizontal-board.jpg");
3+
background-image: url("horizontal-board.webp");
44
border: 8px solid rgb(100,50,20);
55
border-radius: 40px;
66
padding: 1rem;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@page "/not-found"
2+
@layout MainLayout
3+
4+
<h3>Not Found</h3>
5+
<p>Sorry, the content you are looking for does not exist.</p>

ChessChampion.Client/Routes.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Router AppAssembly="typeof(Program).Assembly">
1+
<Router AppAssembly="typeof(Program).Assembly" NotFoundPage="typeof(Pages.NotFound)">
22
<Found Context="routeData">
33
<RouteView RouteData="routeData" DefaultLayout="typeof(Layout.MainLayout)" />
44
<FocusOnNavigate RouteData="routeData" Selector="h1" />

ChessChampion.Client/_Imports.razor

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
@using Microsoft.JSInterop
99
@using ChessChampion.Client
1010
@using ChessChampion.Client.Components
11-
@using ChessChampion.Shared.Models
11+
@using ChessChampion.Shared.Models
12+
@using ChessChampion.Client.Layout

ChessChampion.Core/ChessChampion.Core.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">
22

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

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="9.0.8" />
10+
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="10.0.0-preview.7.25380.108" />
1111
</ItemGroup>
1212

1313
<ItemGroup>

ChessChampion.Server/ChessChampion.Server.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
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>
88

99
<ItemGroup>
1010
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.23.0" />
11-
<PackageReference Include="Microsoft.Identity.Web" Version="3.12.0" />
11+
<PackageReference Include="Microsoft.Identity.Web" Version="3.13.2" />
1212
</ItemGroup>
1313

1414
<ItemGroup>
1515
<ProjectReference Include="..\ChessChampion.Client\ChessChampion.Client.csproj" />
1616
<ProjectReference Include="..\ChessChampion.Core\ChessChampion.Core.csproj" />
17-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="9.0.8" />
17+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="10.0.0-preview.7.25380.108" />
1818
</ItemGroup>
1919

2020
<ItemGroup>

ChessChampion.Server/Components/App.razor

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<base href="/" />
8+
<ResourcePreloader />
89
<link rel="stylesheet" href="@Assets["app.css"]" />
910
<link rel="stylesheet" href="@Assets["ChessChampion.Server.styles.css"]" />
1011
<ImportMap />
@@ -14,7 +15,12 @@
1415

1516
<body>
1617
<Routes @rendermode="InteractiveWebAssembly" />
17-
<script src="_framework/blazor.web.js"></script>
18+
<script src="@Assets["_framework/blazor.web.js"]" autostart="false"></script>
19+
<script>
20+
Blazor.start({
21+
ssr: { disableDomPreservation: true }
22+
});
23+
</script>
1824
</body>
1925

2026
</html>
106 KB
Loading

0 commit comments

Comments
 (0)