Please can support be added for adding migrations with dotnet-ef when the startup.cs is in a different project to the DbContext.
https://stackoverflow.com/questions/38705694/add-migration-with-different-assembly helped me.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
dotnet ef migrations add --startup-project ./ProjectWithStartup/ --project ./ProjectWithDbContext/
The Using a Separate Project article is about adding migrations to a project that doesn't contain your DbContext. Having Startup in a separate project is mentioned a few places throughout the docs.
@bricelam do you think this issue should be closed then?
It might be worth mentioning the startup project again on this page.
Duplicate of ##933
Most helpful comment