microsoft / microsoft/aspire

`aspire publish` / `deploy` / `do prepare-env` always uses Debug build

Open
#14,540 5 comments 0 reactions 0 assignees View on GitHub
area-cli
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

When I run `aspire publish` or `aspire do prepare-compose` command, CLI always rebuilds the apphost and the dependent services.

However, it uses _Debug_ configuration of the solution to build the projects, and there doesn't seem to be a way to set the build configuration.

This can be observed by passing `--debug` to the CLI and watching the output directories of the dotnet-built projects.

Even if during publishing the CLI uses `dotnet publish --configuration Release`, I don't understand why it first builds everything in debug.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.