Update maui-blazor-web-app.md (#32905)
parent
f1e054280d
commit
3f3c0b088a
|
@ -531,11 +531,24 @@ Dependency injection is used to obtain the implementations of these services.
|
|||
|
||||
In the MAUI project, the `MauiProgram.cs` file has following `using` statements at the top of the file:
|
||||
|
||||
:::moniker range=">= aspnetcore-9.0"
|
||||
|
||||
```csharp
|
||||
using MauiBlazorWeb.Services;
|
||||
using MauiBlazorWeb.Shared.Interfaces;
|
||||
```
|
||||
|
||||
:::moniker-end
|
||||
|
||||
:::moniker range="< aspnetcore-9.0"
|
||||
|
||||
```csharp
|
||||
using MauiBlazorWeb.Maui.Services;
|
||||
using MauiBlazorWeb.Shared.Interfaces;
|
||||
```
|
||||
|
||||
:::moniker-end
|
||||
|
||||
Immediately before the call to `builder.Build()`, `FormFactor` is registered to add device-specific services used by the RCL:
|
||||
|
||||
```csharp
|
||||
|
|
Loading…
Reference in New Issue