Skip to content

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

@Lexy2

Description

@Lexy2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions