简体   繁体   English

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

[英]VS Code on Windows10 + CMake extension on WSL application

I'm trying to set up my development environment to build and debug WSL application on Windows 10. 我正在尝试设置开发环境以在Windows 10上构建和调试WSL应用程序。

The debug part I already managed to set it to work: Windows 10's Windows Subsystem for Linux 我已经设法将其调试部分设置为起作用: Windows 10的Windows Linux子系统

Now the only thing I need is to integrate the CMake functionality avoiding to build manually on the bash console. 现在,我唯一需要的就是集成CMake功能,避免在bash控制台上手动构建。

Is this possible, can we call the cmake from VS Code on a WSL application from CMake extension or using any other option (example tasks... I never use it but reading about it, it seems that it can do the work i need no?) 这可能吗,我们可以从CMake扩展名的WSL应用程序上调用VS Code的cmake还是使用其他任何选项(示例任务...我从不使用它,而是阅读它,看来它可以完成我不需要的工作?)

Thanks 谢谢

In order to help others a possible solution is described here: VS Code on Windows10 + WSL application (compile and debug) 为了帮助其他人,这里描述了一种可能的解决方案: Windows10 + WSL应用程序上的VS代码(编译和调试)

Tasks were used to solve the build issue... a better solution will be to use the CMake extension... but for now this is enough. 任务被用来解决构建问题...一个更好的解决方案是使用CMake扩展...但是到目前为止,这已经足够了。

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM