Skip to content

File-based apps don't re-evaluate during --no-build unlike project-based apps #54551

Closed

Description

@jjonescz

When dotnet run is used with a project-based app, it always re-evaluates the project to determine RunCommand, hence passing different properties can change what is run even if build is skipped.

However, file-based apps cache the evaluation, and so changing properties doesn't change the RunCommand being used.

A workaround would be to use --no-cache but that currently cannot be used together with --no-build (although that's a bit arbitrary limitation and could be lifted).

Originally reported at microsoft/aspire#17748 (comment).

Activity

  1. self-assigned this
    on Jun 2, 2026
  2. added theissue type on Jun 2, 2026
  3. added
    Area-run-file
    on Jun 2, 2026
  4. added
    untriaged
    on Jun 2, 2026
  5. removed
    untriaged
    on Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area-run-file

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions