-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to debug a .net core web workspace #1474
Comments
I can repro this; the immediate issue is our misunderstanding of (and a bit of VS Code inconsistency in) how VS Code indicates whether a task/debug configuration is being executed in a workspace context (vs. a folder context). In the case of debugging, VS Code passes While those are relatively simple fixes, the larger issue is that, as of The current workaround would be to put the task/debug configuration in the |
@ravipal , after next VSCode release, please validate this is fixed and close |
@philliphoff the C# extension adds the tasks as workspace folder tasks irrespective of whether you have a workspace open. When we add the debug tasks, we're adding them as workspace tasks. The result is that it never runs dotnet build (because that task is defined somewhere other than workspace), doesn't show a warning or error that it didn't execute a dependent task (thanks VSCode), and fails at time of launch. I can't repro the new error @ravipal is seeing. We should add the tasks as workspace folder tasks always. |
Update: if I move the
Related to the above, when I tried the right-click-Dockerfile > Build Image, our code successfully found and selected the official build task, but calling |
Repro steps:
Attaching the repro folder
WebApp4.zip
Action: docker-launch
Error type: Error
Error Message: To debug with Docker you must first open a folder or workspace in VS Code.
Version: 0.9.0
OS: win32
Product: Visual Studio Code
Product Version: 1.40.2
Language: en
Call Stack
The text was updated successfully, but these errors were encountered: