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