-
Notifications
You must be signed in to change notification settings - Fork 45
Description
For VS Code, here are steps you can follow for debugging a .NET Core project on your local dev machine within a container. Works well, with the caveat that it needs a dockerfile (which can easily be auto-generated using the extension). When performing step #4 from that link, it will add a launch option and a series of tasks for docker run/build. I tried modifying these steps to get it to switch out the build process in favor of the built in SDK flavor via dotnet publish, however there were problems since the docker-run task mounts the /app directory, which was being used by the dotnet publish command (at least that's as much as I can decipher w/o seeing the actual generated dockerfile).
Either way, I think some updated docs could be useful for how to setup for local dev & debugging with VS Code and VS Studio. After spending a couple hours on it, I gave up and switched to just continuing to use the traditional dockerfile approach as explained in the link above.