Skip to content

Trigger project recompilation automatically after adding/removing a migration #14388

@AndriySvyryd

Description

@AndriySvyryd

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

If a migration is added/removed, the project’s compiled artifacts can become out of sync with the running process. A rebuild ensures that the next launch uses assemblies reflecting the new migration code.

Describe the solution you'd like

After adding or removing an EF Core migration via the Aspire EF migration management integration (introduced in #13481), the project should be rebuilt automatically so subsequent restarts run the latest compiled output.

Depends on: #11072

Additional context

No response

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