Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions docs/data-cloud/aspire-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ The MAUI Service Defaults project contains shared configuration that your MAUI a
dotnet new maui-aspire-servicedefaults -n YourApp.MauiServiceDefaults
```

Add the project to the solution:

```dotnetcli
dotnet sln add YourApp.MauiServiceDefaults/YourApp.MauiServiceDefaults.csproj
```

This project includes:

- Service discovery configuration
Expand All @@ -93,13 +99,28 @@ The App Host project orchestrates all your application services, including your
dotnet new aspire-apphost -n YourApp.AppHost
```

Add the project to the solution:

```dotnetcli
dotnet sln add YourApp.AppHost/YourApp.AppHost.csproj
```

Add references to your MAUI app and any web service projects:

```dotnetcli
dotnet add YourApp.AppHost.csproj reference YourMauiApp/YourMauiApp.csproj
dotnet add YourApp.AppHost.csproj reference YourWebService/YourWebService.csproj
```

Add a reference to the Aspire hosting package for .NET MAUI:

```dotnetcli
dotnet add package Aspire.Hosting.Maui --version 13.0.0-preview.1.25560.3 --project .\YourApp.AppHost\YourApp.AppHost.csproj
```

> [!NOTE]
> For now you need to use a preview version of the Aspire.Hosting.Maui package.

### Configure the App Host

In your App Host project's `Program.cs`, register your MAUI app and web services:
Expand Down
Loading