From 3f3c0b088a96cd165e26815780be5a07fc216038 Mon Sep 17 00:00:00 2001 From: waedi Date: Thu, 20 Jun 2024 13:57:44 +0200 Subject: [PATCH] Update maui-blazor-web-app.md (#32905) --- .../blazor/hybrid/tutorials/maui-blazor-web-app.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/aspnetcore/blazor/hybrid/tutorials/maui-blazor-web-app.md b/aspnetcore/blazor/hybrid/tutorials/maui-blazor-web-app.md index 4f7740178c..88251eb1aa 100644 --- a/aspnetcore/blazor/hybrid/tutorials/maui-blazor-web-app.md +++ b/aspnetcore/blazor/hybrid/tutorials/maui-blazor-web-app.md @@ -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