I’m trying to work with VS2022 & CMake while targeting the WSL2 instance following this article. I have an existing Ubuntu-20.04 WSL2 instance that I’ve been working with for a while now for my C++ builds. My intention is to move my development to the Linux platform, but still use VS2022.
On initial startup of VS2022, I can see that my instances are listed. However, upon selecting the Ubuntu-20.04 instance, it tries to connect but fails with the following output: “Failed to change target system to ‘WSL: Ubuntu-20.04’: Echo command failing”.
The message is not very helpful, and I can’t find any other logs that might aid in resolving this. Has anyone encountered this issue before, and also, does anyone know where I can find additional logs or information that could be helpful for debugging this issue?
I’ve tried looking at the logs at %APP_DATA%MicrosoftVisualStudioSettingsLogs but couldn’t find information that would be helpful.
stafla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.