-
Notifications
You must be signed in to change notification settings - Fork 659
Open
Labels
area-toolingvs-codeIssues related to vs code tooling for aspireIssues related to vs code tooling for aspire
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
Platform: MacOS
IDE: VSCode
.NET version: 8.0.8
C# Dev Kit version: 1.20.35 / 1.30.4 (preview) (Used both, issue still remains)
Aspire version: 9.3.0
Hello! I'm currently trying to add Aspire to existing solution, and this is the launch.json I'm using:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Run Service",
"type": "dotnet",
"request": "launch",
"projectPath": "../Services/MyService/MyService.Web/MyService.Web.csproj",
}
]
}
Directory structure is as follows:
- src
- LocalOrchestration
- Aspire
- Aspire.csproj
- Services
- MyService
- MyService.Web
- MyService.Web.csproj
When trying to debug Aspire application with "Run Service" profile I receive the following error:
"../Services/MyService/MyService.Web/MyService.Web.csproj" does not support debugging. No launchable target found.
I've tried solutions from issue 3995 however, none of them worked.
My output is as follows:
2025-06-05 16:54:44.896 [info] Determining projects to restore...
2025-06-05 16:54:45.091 [info] All projects are up-to-date for restore.
And terminal:
Executing task: dotnet: build ../Services/MyService/MyService.Web/MyService.Web.csproj
dotnet build ../Services/MyService/MyService.Web/MyService.Web.csproj /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary /p:Configuration=Debug /p:Platform="AnyCPU"
C# extension build result service is available.
Determining projects to restore...
All projects are up-to-date for restore.
MyService.Domain -> /Users/user/Projects/backend/src/Services/MyService/MyService.Domain/bin/Debug/net8.0/MyService.Domain.dll
MyService.Infrastructure -> /Users/user/Projects/backend/src/Services/MyService/MyService.Infrastructure/bin/Debug/net8.0/MyService.Infrastructure.dll
MyService.Web -> /Users/user/Projects/backend/src/Services/MyService/MyService.Web/bin/Debug/net8.0/MyService.Web.dll
Terminal will be reused by tasks, press any key to close it.
Please advise.
Expected Behavior
Debug with launch.json should work.
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version info
.NET version: 8.0.8
Anything else?
No response
Metadata
Metadata
Assignees
Labels
area-toolingvs-codeIssues related to vs code tooling for aspireIssues related to vs code tooling for aspire