TL; DR:有人使用Visual Studio 2022找到了在WSL2中打开文件夹的方法?
上下文:我正在开发C/C ++ Linux软件。当前,我正在使用VisualStudio代码打开和编辑源文件。现在,我对Visual Studio 2022的效率提高了,我找不到在WSL2内部打开文件夹的方法。 (单文件有效,但这几乎不足以进行适当的工作流)。
我已经尝试关注这个答案,但它没有我需要的事情。
此外,根据此MS DevBlog ,Quote:
“ Visual Studio中我们的C ++跨平台支持假设所有源文件源于Windows文件系统。” 对我而言并非如此,我的文件起源于WSL2,使它们源于Windows成为一种麻烦,将超过与VS2022合作所带来的好处。
注意:我只想以这种方式编写代码。构建和运行该软件的地方在其他地方完成。
有人设法完成这项工作吗?
TL;DR: Has anyone found a way to open folders in WSL2 using Visual Studio 2022?
Context: I am developing a C/C++ Linux software. Currently, I am using VisualStudio Code to open and edit source files. Now, I am way more efficient with Visual Studio 2022 and I cannot find a way to open folders inside of WSL2. (Single files work, but that is nearly not good enough for a proper workflow).
I have tried following this answer, but it does not do what I need.
Further, according to this MS devblog, quote:
"Our C++ cross-platform support in Visual Studio assumes that all source files originate in the Windows file system." This is not the case for me, my files originate in WSL2 and making them originate in Windows would be a hassle that would outweigh the benefits gained from working with VS2022.
Note: I only want to write code this way. Building and running the software is done somewhere else.
Anyone managed to make this work?
发布评论
评论(1)
目前不可能根据 https://devblogs.microsoft.com/dotnet/debug-your-net-net-net-core-apps-in-wsl-wsl-wsl-wsl-2-with-with-with-visual-studio/#comment-7947
反馈是从2021年10月19日起。我非常失望。
It is not possible at this moment according to https://devblogs.microsoft.com/dotnet/debug-your-net-core-apps-in-wsl-2-with-visual-studio/#comment-7947
https://developercommunity.visualstudio.com/t/cant-debug-dotnet-core-project-in-wsl/1554569
The feedback was from Oct 19, 2021. I am very disappointed.