Browse Source

Merge pull request #24236 from abpframework/10.0-mauiblazor-fix

Update startup project instructions for UI variants
pull/24237/head
Engincan VESKE 3 months ago
committed by GitHub
parent
commit
ba4177399b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 8
      docs/en/tutorials/todo/layered/index.md

8
docs/en/tutorials/todo/layered/index.md

@ -139,7 +139,7 @@ Ensure the `TodoApp.HttpApi.Host` project is the startup project, then run the a
![todo-swagger-ui-initial](../images/todo-swagger-ui-initial.png)
You can explore and test your HTTP API with this UI. Now, we can set the `TodoApp.Blazor` as the startup project and run it to open the actual Blazor application UI:
You can explore and test your HTTP API with this UI. Now, we can set the {{if UI=="Blazor"}}`TodoApp.Blazor`{{else if UI=="MAUIBlazor"}}`TodoApp.MauiBlazor`{{end}} as the startup project and run it to open the actual Blazor application UI:
{{else if UI=="NG"}}
@ -577,7 +577,11 @@ If you open the [Swagger UI](https://swagger.io/tools/swagger-ui/) by entering t
### Index.razor.cs
Open the `Index.razor.cs` file in the `Pages` folder of the {{if UI=="Blazor" || UI=="BlazorWebApp"}} *TodoApp.Blazor.Client* {{else if UI=="BlazorServer"}} *TodoApp.Blazor* {{else if UI=="MAUIBlazor"}} *TodoApp.MauiBlazor* {{end}} project and replace the content with the following code block:
Open the `Index.razor.cs` file in the `Pages` folder of the {{if UI=="Blazor" || UI=="BlazorWebApp"}} `TodoApp.Blazor.Client` {{else if UI=="BlazorServer"}} `TodoApp.Blazor` {{else if UI=="MAUIBlazor"}} `TodoApp.MauiBlazor` {{end}} project and replace the content with the following code block:
{{if UI=="MAUIBlazor"}}
_(Create this file if it doesn't exist)_
{{end}}
```csharp
using Microsoft.AspNetCore.Components;

Loading…
Cancel
Save