Allow running and debugging a Linux-only project on aspire #12561
Replies: 1 comment
-
|
I finally got it, and it was easier than i thought. You just need to set your launchProfileName to exact profile you want to run, like this for WSL: builder.AddProject<Projects.Neo_Manager>("NeoManager", launchProfileName: "WSL");Or this for docker: builder.AddProject<Projects.Neo_Manager>("NeoManager", launchProfileName: "Container (Dockerfile)");That's all it takes, aspire now will run in the selected profile and will be possible to debug your project running in linux or docker. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, i have an Aspire solution that includes some modules which only run on Linux, like this one:
I’ve already tried running it as a container using AddDockerfile, but I wasn’t able to attach a debugger or step through the code, like this:
Is there any way to run this project inside WSL or Docker while still being able to debug it (for example, attach from Visual Studio)?
Ideally, I’d like to keep the same Aspire workflow, but have this specific project run in a Linux environment that supports debugging.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions