dotnet / aspire

An opinionated, cloud ready stack for building observable, production ready, distributed applications in .NET
https://learn.microsoft.com/dotnet/aspire
MIT License
3.63k stars 409 forks source link

Aspire Debugging in VS Code Exists with Code 0 if any project is setup to run and exit (i.e. like EF Core Migrations) #4739

Open jhancock-taxa opened 2 months ago

jhancock-taxa commented 2 months ago

If you have a project that runs and finishes then vs code exits the aspire host debugging and just gest "The program AppHost has exited with code 0 (0x0)." (Even if there is other projects that continue to run)

It works fine as long as you don't have a project that runs and exits. But since this will be common because of EF Core, this is important.

It works fine in VS.net and Rider.

natelaff commented 3 weeks ago

No comments on this yet? I have been banging my head as I've been trying to migrate from Windows to Mac using VS Code and getting my environment set up. Can confirm this issue exists with something like Migrations running. The host shuts down entirely. Did you find a workaround @jhancock-taxa ?