aspire
aspire copied to clipboard
VS Code Debug Aspire crashes after running with exit code 0
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the bug
When starting a debug session on aspire in VSCode, the AppHost runs completely, starts all the resources and about ~30s after the debug session crashes with no significant errors. The AppHost and all resources exit with code 0 with no Exceptions regardless of LogLevel and did not find anything that looked relevant on the C# Dev Kit logs or the C# extension logs.
https://github.com/user-attachments/assets/1094343d-c422-4758-a7b9-a789027ad030
Expected Behavior
Aspire Debug session starts and continues succesfully.
Steps To Reproduce
- Right click on App Host in VS Code
- Select Debug -> Start New Instance
- The project will run, the dashboard launches, the resources are created
- After a short while after all the resources are created the debug session crashes
Attached video of issue, if you need any other information let me know.
Exceptions (if any)
info: Aspire.Hosting.DistributedApplication[0] Login to the dashboard at https://localhost:17112/login?t=13d1f849fecd488c89282d540bb7d692 info: Aspire.Hosting.DistributedApplication[0] Distributed application started. Press Ctrl+C to shut down. Aspire.Hosting.DistributedApplication: Information: Distributed application started. Press Ctrl+C to shut down. The program '[359961] Prdh.AppHost' has exited with code 0 (0x0).
.NET Version info
.NET SDK: Version: 9.0.100-rc.1.24452.12 Commit: 81a714c6d3 Workload version: 9.0.100-manifests.a7bf2b8f MSBuild version: 17.12.0-preview-24422-09+d17ec720d
Runtime Environment: OS Name: ubuntu OS Version: 24.04 OS Platform: Linux RID: linux-x64 Base Path: /usr/share/dotnet/sdk/9.0.100-rc.1.24452.12/
.NET workloads installed: Configured to use loose manifests when installing new manifests. There are no installed workloads to display.
Host: Version: 9.0.0-rc.1.24431.7 Architecture: x64 Commit: static
.NET SDKs installed: 8.0.402 [/usr/share/dotnet/sdk] 9.0.100-rc.1.24452.12 [/usr/share/dotnet/sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 8.0.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 9.0.0-rc.1.24452.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 8.0.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 9.0.0-rc.1.24431.7 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found: None
Environment variables: Not set
global.json file: Not found
Learn more: https://aka.ms/dotnet/info
Download .NET: https://aka.ms/dotnet/download
Anything else?
- Running on Github Codespace with dotnet devcontainer - 8 vcpu with 32 GB RAM
- Can replicate on both VS Code and VS Code Insiders
- Can replicate with both the Release and Prerelease versions of C# and C# DevKit extensions
- No errors found in the C# and C# Dev Kit logs
- Executing via 'dotnet run' works fine