From cb6d92cf35e59c881e215df0aecf7a60e7fe5a51 Mon Sep 17 00:00:00 2001 From: enisn Date: Thu, 20 Nov 2025 14:28:08 +0300 Subject: [PATCH 1/2] Update folder paths for BlazorServer in tutorial Adjusted instructions to reference the correct `Components/Pages` folder for BlazorServer projects instead of `Pages`, ensuring clarity for users following the tutorial. --- docs/en/tutorials/todo/single-layer/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/tutorials/todo/single-layer/index.md b/docs/en/tutorials/todo/single-layer/index.md index 16206b9bd7..6e985784c0 100644 --- a/docs/en/tutorials/todo/single-layer/index.md +++ b/docs/en/tutorials/todo/single-layer/index.md @@ -567,7 +567,7 @@ If you open [Swagger UI](https://swagger.io/tools/swagger-ui/) by entering the ` ### Index.razor.cs -Open the `Index.razor.cs` file in the `Pages` folder{{if UI=="Blazor"}} in your `Todo.Blazor` project{{end}} and replace the content with the following code block: +Open the `Index.razor.cs` file in the {{if UI=="BlazorServer"}}`Components/Pages` {{else}} `Pages` {{end}} folder{{if UI=="Blazor"}} in your `Todo.Blazor` project{{end}} and replace the content with the following code block: ```csharp {{if UI=="Blazor"}} @@ -615,7 +615,7 @@ This class uses the {{if UI=="Blazor"}}`ITodoAppService`{{else}}`TodoAppService` ### Index.razor -Open the `Index.razor` file in the `Pages` folder and replace the content with the following code block: +Open the `Index.razor` file in the {{if UI=="BlazorServer"}}`Components/Pages`{{else}}`Pages`{{end}} folder and replace the content with the following code block: ```xml @page "/" @@ -658,7 +658,7 @@ Open the `Index.razor` file in the `Pages` folder and replace the content with t ### Index.razor.css -As the final touch, open the `Index.razor.css` file in the `Pages` folder and add the following code block at the end of the file: +As the final touch, open the `Index.razor.css` file in the {{if UI=="BlazorServer"}}`Components/Pages`{{else}}`Pages`{{end}} folder and add the following code block at the end of the file: ````css #TodoList{ From ae8999a65e5c79fee27b0584b7324adff769d586 Mon Sep 17 00:00:00 2001 From: enisn Date: Thu, 20 Nov 2025 14:42:10 +0300 Subject: [PATCH 2/2] Update namespace selection in Blazor tutorial Adjusted the namespace declaration in the Blazor tutorial to conditionally use 'TodoApp.Pages' for Blazor UI and 'TodoApp.Components.Pages' otherwise. This clarifies the correct namespace usage based on the UI framework. --- docs/en/tutorials/todo/single-layer/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/en/tutorials/todo/single-layer/index.md b/docs/en/tutorials/todo/single-layer/index.md index 6e985784c0..9493b76dd9 100644 --- a/docs/en/tutorials/todo/single-layer/index.md +++ b/docs/en/tutorials/todo/single-layer/index.md @@ -580,7 +580,11 @@ using TodoApp.Services; using TodoApp.Services.Dtos; {{end}} +{{if UI=="Blazor"}} namespace TodoApp.Pages; +{{else}} +namespace TodoApp.Components.Pages; +{{end}} public partial class Index {