如何编写原生 C++在 VS 2022 中,使用 Linux 进行构建和测试
我需要一个本机 C++ 应用程序来从头开始制作。它必须在 Linux (CentOS) 上运行。我想用VS2022来编写和测试。我有带有 CentOS 的 Hyper-V 虚拟机。
我尝试用 google 搜索解决方案,但只有使用 WSL 的帖子。
有人可以描述一下将 VS 连接到 Linux VM 而不是 WSL 的步骤,以便我可以在 VM 上构建和运行应用程序。
I need a native C++ app to make from scratch. It has to run on linux (CentOS). I want to use VS2022 to write and test. I have Hyper-V VM with CentOS.
I tried to google a solution but there are only posts for using WSL.
Can someone please describe steps to connect VS to Linux VM instead of WSL so I can build and run the app on the VM.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
本文介绍了该过程:https://devblogs .microsoft.com/cppblog/linux-development-with-c-in-visual-studio/
This article describes the process: https://devblogs.microsoft.com/cppblog/linux-development-with-c-in-visual-studio/