microsoft / microsoft/aspire

Trigger project recompilation automatically after adding/removing a migration

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

Description

### Is there an existing issue for this?

- [x] 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 https://github.com/dotnet/aspire/pull/13481), the project should be rebuilt automatically so subsequent restarts run the latest compiled output.

**Depends on:** https://github.com/dotnet/aspire/issues/11072

### Additional context

_No response_

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.