Aspire Host run configuration
The .NET Aspire plugin provides a special run configuration for the .NET Aspire Host projects. It discovers such projects by the <IsAspireHost>true</IsAspireHost>
MSBuild property. For each launchSettings.json profile of this project, the corresponding run configuration will be generated.
Item | Description |
---|---|
Project | .NET Aspire host project (defined by the |
Target framework | Select a target framework if there are several target frameworks for your project |
Launch profile | A profile name from the |
Arguments | Arguments that will be passed to the executable when the configuration is started. Multiple arguments should be separated with whitespaces. |
Working directory | The working directory is automatically set to the project root path of the selected target project, but you can change it if needed. |
Environment variables | List of environment variables. The list is defined by the |
Use Podman container runtime | Select this checkbox if you are using Podman. This option automatically sets the environment variable |
URL | The URL that will be opened after a successful launch. By default, this value is filled with the |
Before launch | Different tasks to perform before starting the configuration. |
This run configuration allows you to run or debug multiple projects registered in the Host project.
A separate node will also be created in the Services tool window. It allows you to monitor resources while Aspire Host is running. For example, you can find resource properties, endpoints, environment variables, and read logs there.