在Linux上构建现有的C ++项目

我想在Linux计算机上构建现有项目(MSBuild):

I have already set up my visual studio environment, so the c++ projects can be build on my linux computer. I followed these instructions: https://devblogs.microsoft.com/cppblog/linux-development-with-c-in-visual-studio/

If I compile my Linux C++ project (https://imgur.com/cU5buHR) on visual studio (local) it builds it on my linux computer (virtual machine)(https://imgur.com/h3UA8TA). But I have existing c++ projects which do not have the set up for the Linux environment. For test cases I created just a WindowsConsoleApplication (https://imgur.com/AKvT0c1), with a simple cout Hello World. Now I want to change the setup for this project to the linux setup, so it can be build on the linux computer. I googled and found that I should use VisualGDB, but VisualGDB is using cmake files I guess, which I do not have when I create just a WindowsConsoleApplication.

Linux project prop: https://imgur.com/mJYbJMY

windows project prop: https://imgur.com/F0JLmOO

为了在Linux计算机上构建项目,我应该如何更改项目?我必须采取哪些步骤? (我正在使用VS2019,而Linux计算机是Debian(buster)发行版)

评论