Skip to content

Commit 7af69e8

Browse files
Copilotjfversluis
andcommitted
Add command line and VS Code instructions for running AppHost
Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com>
1 parent 969a4a1 commit 7af69e8

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

docs/data-cloud/aspire-integration.md

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,27 @@ On Windows, local service connectivity works directly through localhost without
305305

306306
## Running your application
307307

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:
309309

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
311313
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
314329

315330
> [!NOTE]
316331
> 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:
326341

327342
When running through the App Host, you can select which platform to target:
328343

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
332349

333350
## Monitoring and debugging
334351

0 commit comments

Comments
 (0)