You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data-cloud/aspire-integration.md
+24-7Lines changed: 24 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -305,12 +305,27 @@ On Windows, local service connectivity works directly through localhost without
305
305
306
306
## Running your application
307
307
308
-
To run your MAUI app with Aspire integration:
308
+
To run your MAUI app with Aspire integration, you can use one of the following methods:
309
309
310
-
1. Set the App Host project as the startup project in Visual Studio or your preferred IDE
310
+
**Visual Studio:**
311
+
312
+
1. Set the App Host project as the startup project
311
313
2. Run the solution (F5 or Debug > Start Debugging)
312
-
3. The Aspire dashboard will open, showing all registered services
313
-
4. Your MAUI app will launch and automatically connect to the configured services
314
+
315
+
**Command line:**
316
+
317
+
1. Navigate to the App Host project directory
318
+
2. Run `dotnet run` or `dotnet run --project YourApp.AppHost.csproj`
319
+
320
+
**VS Code:**
321
+
322
+
1. Open the App Host project folder
323
+
2. Run the project using the .NET debugger or terminal
324
+
325
+
When the App Host starts:
326
+
327
+
- The Aspire dashboard will open, showing all registered services
328
+
- Your MAUI app will launch and automatically connect to the configured services
314
329
315
330
> [!NOTE]
316
331
> Screenshot suggestion: Show the Aspire dashboard with multiple services running (MAUI app, web service, database if applicable) with their status indicators and resource usage.
@@ -326,9 +341,11 @@ When you run your application through the App Host:
326
341
327
342
When running through the App Host, you can select which platform to target:
328
343
329
-
1. In Visual Studio, use the target framework dropdown to select your desired platform (Android, iOS, Windows, etc.)
330
-
2. The App Host will launch your MAUI app on the selected platform
331
-
3. Service connectivity works automatically on all platforms
344
+
-**Visual Studio**: Use the target framework dropdown to select your desired platform (Android, iOS, Windows, etc.)
345
+
-**Command line**: The App Host will use the default platform configuration defined in your project
346
+
-**VS Code**: Configure launch settings to specify the target platform
347
+
348
+
The App Host will launch your MAUI app on the selected platform, and service connectivity works automatically on all platforms
0 commit comments