Skip to content

Commit fa65092

Browse files
authored
[Blazor] Update BlazingPizza to .NET 10.0 (#2142)
* Update BlazingPizza to .NET 10.0 * Remove HTTPS redirect for benchmark compatibility * Fix blazor.benchmarks.yml: move arguments to job level and add readyStateText * Restore UseHttpsRedirection * Migrate BlazingPizza to Blazor Web App pattern - Updated Program.cs to use AddRazorComponents/MapRazorComponents - Created Components folder with App.razor, Routes.razor - Moved Pages to Components/Pages - Moved Shared to Components/Layout - Removed _Host.cshtml (replaced by App.razor) - Updated scripts from blazor.server.js to blazor.web.js - Added UseAntiforgery middleware
1 parent a65a7ec commit fa65092

20 files changed

Lines changed: 43 additions & 34 deletions

scenarios/blazor.benchmarks.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
repository: https://github.com/aspnet/benchmarks.git
1515
branchOrCommit: main
1616
project: src/BenchmarksApps/BlazorBlazingPizza/BlazingPizza.Server.csproj
17-
arguments: "--urls {{serverScheme}}://{{serverAddress}}:{{serverPort}}"
17+
readyStateText: Application started.
18+
arguments: "--urls {{serverScheme}}://{{serverAddress}}:{{serverPort}}"
1819

1920
scenarios:
2021
ssr:

src/BenchmarksApps/BlazorBlazingPizza/App.razor

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/BenchmarksApps/BlazorBlazingPizza/BlazingPizza.Server.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>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
</PropertyGroup>
77

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<base href="/" />
7+
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
8+
<link rel="stylesheet" href="css/site.css" />
9+
<HeadOutlet @rendermode="InteractiveServer" />
10+
</head>
11+
<body>
12+
<Routes @rendermode="InteractiveServer" />
13+
<script src="_framework/blazor.web.js"></script>
14+
</body>
15+
</html>

src/BenchmarksApps/BlazorBlazingPizza/Shared/AddressEditor.razor renamed to src/BenchmarksApps/BlazorBlazingPizza/Components/Layout/AddressEditor.razor

File renamed without changes.

src/BenchmarksApps/BlazorBlazingPizza/Shared/ConfigurePizzaDialog.razor renamed to src/BenchmarksApps/BlazorBlazingPizza/Components/Layout/ConfigurePizzaDialog.razor

File renamed without changes.

src/BenchmarksApps/BlazorBlazingPizza/Shared/ConfiguredPizzaItem.razor renamed to src/BenchmarksApps/BlazorBlazingPizza/Components/Layout/ConfiguredPizzaItem.razor

File renamed without changes.

src/BenchmarksApps/BlazorBlazingPizza/Shared/MainLayout.razor renamed to src/BenchmarksApps/BlazorBlazingPizza/Components/Layout/MainLayout.razor

File renamed without changes.

src/BenchmarksApps/BlazorBlazingPizza/Shared/OrderReview.razor renamed to src/BenchmarksApps/BlazorBlazingPizza/Components/Layout/OrderReview.razor

File renamed without changes.

src/BenchmarksApps/BlazorBlazingPizza/Shared/TemplatedDialog.razor renamed to src/BenchmarksApps/BlazorBlazingPizza/Components/Layout/TemplatedDialog.razor

File renamed without changes.

0 commit comments

Comments
 (0)