Windows10 上的 VS Code + WSL 应用程序上的 CMake 扩展

VS Code on Windows10 + CMake extension on WSL application

我正在尝试设置我的开发环境以在 Windows 10 上构建和调试 WSL 应用程序。

调试部分我已经设法让它工作了:Windows 10's Windows Subsystem for Linux

现在我唯一需要做的就是集成 CMake 功能,避免在 bash 控制台上手动构建。

这可能吗,我们可以通过 CMake 扩展或使用任何其他选项在 WSL 应用程序上从 VS Code 调用 cmake(示例任务......我从没用过它,但阅读它,它似乎可以做到我不需要的工作?)

谢谢

为了帮助其他人,这里描述了一个可能的解决方案:VS Code on Windows10 + WSL application (compile and debug)

任务用于解决构建问题...更好的解决方案是使用 CMake 扩展...但现在这已经足够了。

谢谢