Deploying a .NET Aspire project
.NET Aspire can be used to test an application or a small part of a complex microservice application on the development machine, thus replacing minikube and Docker networks.
However, small applications can be completely implemented in Aspire and then the Aspire code can be used to generate the configuration of the target orchestrator. This generation can be manual or based on automatic tools.
Both manual generation and automatic tools rely on a JSON manifest that can be created automatically and that describes the application configuration. The JSON manifest can be generated by adding the following launch profile to the App Host project’s launchSettings.json
file:
"profiles": {
"generate-manifest": {
"commandName": "Project",
"launchBrowser": false,
"dotnetRunMessages": true,
"commandLineArgs": "--publisher manifest --output-path aspire-
...